Bug #36353
openMisleading job invocation details when running ansible roles in bulk
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2156532
Description of problem:
Roles assigned only to host_a show up in host_b job invocation details.
Version-Release number of selected component (if applicable):
Satellite 6.12
Let me explain it on a real example:
- Have 2 hosts - 'jsenkyri-rhel8' and 'jsenkyri-rhel7'
- Assign 'RedHatInsights.insights-client' role to 'jsenkyri-rhel8'
- Do not assign any roles to 'jsenkyri-rhel7'
- Select both hosts and hit 'Run all Ansible roles'
- Check job details for 'jsenkyri-rhel7'. Tasks related to 'RedHatInsights.insights-client' role are visible even though the role is not assigned to this host. See attached screenshot.
Actual results:
Role(s) assigned only to 'jsenkyri-rhel8' show-up in 'jsenkyri-rhel7' job invocation details.
Expected results:
Job invocation details for 'jsenkyri-rhel7' should only show roles/tasks that are assigned to this particular host.
No data to display