-
- Downloads
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. Closes-Bug: #2051714 Change-Id: I0465eafa9e4ff37c96064ea8395f0bd461035b40
Showing
- ansible/roles/etc-hosts/defaults/main.yml 1 addition, 1 deletionansible/roles/etc-hosts/defaults/main.yml
- ansible/roles/gather-facts-delegated/defaults/main.yml 4 additions, 4 deletionsansible/roles/gather-facts-delegated/defaults/main.yml
- ansible/roles/gather-facts-delegated/tasks/gather-facts-delegated.yml 12 additions, 0 deletions...s/gather-facts-delegated/tasks/gather-facts-delegated.yml
- ansible/roles/gather-facts-delegated/tasks/main.yml 7 additions, 7 deletionsansible/roles/gather-facts-delegated/tasks/main.yml
- releasenotes/notes/fix-etc-hosts-management-6b33748ab37d6273.yaml 6 additions, 0 deletions...otes/notes/fix-etc-hosts-management-6b33748ab37d6273.yaml
Loading
Please register or sign in to comment