Bug #29261
closedansible-runner is executing not assigned playbooks
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1809051
Description of problem:
When using ansible-runner instead of ansible-playbook in Satellite 6.6.2 playbooks that are not assigned are executed
Version-Release number of selected component (if applicable):
Satellite 6.6.2
How reproducible:
Whenever ansible-runner is used for ansible playbooks.
Steps to Reproduce:
1. Set Satellite to use ansible-runner to execute playbooks instead of ansible-playbook
2. Install 3 clients, client-a to client-c
3. Create 3 hostgroups and add each client to a different hostgroup
4. Add different ansible playbooks to each hostgroup
5. select all 3 clients in "All Hosts"
6. Run "Play Ansible Roles"
Actual results:
The correct playbooks are listed if you then check it in "Preview Templates" but it seems that
all playbooks that are assigned to the first client in the list is executed on all clients.
This is not the expected behavior and may damage customer systems if Satellite runs not assigned
playbooks.
Expected results:
Only playbooks that are assigned should be executed on clients.
Satellite needs to calculate which clients have the same playbooks assigned and only group these
in ansible-runner tasks.
Additional info: