Description of problem: Recurring ansible jobs on Hostgroup do not run on client VMs which are added to the hostgroup after the creation of the recurring jobs Version-Release number of selected component (if applicable): Satellite 6.11+ How reproducible: Always Steps to Reproduce: 1. Create a hostgroup with one client. 2. Click on Infrastructure -> Hostgroups -> Dropdown beside nest for the concerned hostgroup -> configure ansible job 3. Set up a recurring job to run every hour. 4. After atleast 1 hour, add another host to this hostgroup. Actual results: The recurring jobs get scheduled with only 1 host even after adding a 2nd host. Expected results: The recurring jobs should get scheduled on 2 hosts after 2nd host is added. Additional info:
The job stood up this way uses a static targeting. Static targeting is resolved once and then the result is reused so that changes to the hostgroup itself do not get reflected. It would probably make sense to kick the job off with dynamic targeting instead. As a workaround, when setting up the ansible job, there's a line saying "For more advanced scheduling options view remote execution page" with a link. If you follow that link, you'll be able to flip the targeting type to dynamic yourself.