Description of problem: We are required to import both the Ansible roles and Ansible variables manually. It would be nice if the Ansible Variables get automatically pulled from the imported Ansible roles automatically. Version-Release number of selected component (if applicable): 6.6 beta
Created redmine issue https://projects.theforeman.org/issues/28287 from this bug
Upstream bug assigned to mshira
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/28287 has been resolved.
Steps to test: 1. Install the redhatofficial.rhel7_stig role on Satellite 6.10, snap 5 from Ansible Galaxy: # ansible-galaxy install redhatofficial.rhel7_stig - downloading role 'rhel7_stig', owned by redhatofficial - downloading role from https://github.com/RedHatOfficial/ansible-role-rhel7-stig/archive/0.1.52.tar.gz - extracting redhatofficial.rhel7_stig to /root/.ansible/roles/redhatofficial.rhel7_stig - redhatofficial.rhel7_stig (0.1.52) was installed successfully 2. Copy the role to /etc/ansible/roles: # cp -r /root/.ansible/roles/redhatofficial.rhel7_stig /etc/ansible/roles/ 3. Log in to the webUI as the admin user. 4. Navigate to Configure > Roles. 5. Click the "Import from satellite.example.com" button. 6. Select the redhatofficial.rhel7_stig role, which shows "Add: 246" in the "Variables" column. 7. Click the "Submit" button. 8. After the import completes, navigate to Configure > Variables. Expected Results: 246 variables appear in the "Ansible Variables" list. Actual Results: 246 variables appear in the "Ansible Variables" list. Verified on Satellite 6.10, snap 5 (tfm-rubygem-foreman_ansible-6.3.0-1.el7sat.noarch).
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.10 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:4702