commit 498de81efe88707e5fd91dba24cdee2a529dedbc
Author: Matt Crees <email address hidden>
Date: Wed Jan 31 10:36:19 2024 +0000
Fix: configure etc-hosts for overcloud group
Change the etc-hosts role to run on the overcloud group, as using
``ansible_play_hosts_all`` would exclude hosts when running with a
limit.
Also change the gather-facts-delegated role to run on the overcloud
group. The delegated task needs to be included separately as the hostvar
``ansible_host`` cannot be set dynamically based on a loop item in one
task. We loop over the batch indices here so that the tasks are included
in parallel, rather than in series.
Reviewed: https:/ /review. opendev. org/c/openstack /kayobe/ +/907306 /opendev. org/openstack/ kayobe/ commit/ 498de81efe88707 e5fd91dba24cdee 2a529dedbc
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 498de81efe88707 e5fd91dba24cdee 2a529dedbc
Author: Matt Crees <email address hidden>
Date: Wed Jan 31 10:36:19 2024 +0000
Fix: configure etc-hosts for overcloud group
Change the etc-hosts role to run on the overcloud group, as using play_hosts_ all`` would exclude hosts when running with a
``ansible_
limit.
Also change the gather- facts-delegated role to run on the overcloud host`` cannot be set dynamically based on a loop item in one
group. The delegated task needs to be included separately as the hostvar
``ansible_
task. We loop over the batch indices here so that the tasks are included
in parallel, rather than in series.
Closes-Bug: #2051714
Change-Id: I0465eafa9e4ff3 7c96064ea8395f0 bd461035b40