Merge "fact gathering: Group hosts before gathering facts"

This commit is contained in:
Zuul 2024-08-21 11:22:43 +00:00 committed by Gerrit Code Review
commit 3a6b9f3d9f

View File

@ -12,17 +12,17 @@
serial: '{{ kolla_serial|default("0") }}'
gather_facts: false
tasks:
- name: Group hosts to determine when using --limit
group_by:
key: "all_using_limit_{{ (ansible_play_batch | length) != (groups['all'] | length) }}"
changed_when: false
- name: Gather facts
setup:
filter: "{{ kolla_ansible_setup_filter }}"
gather_subset: "{{ kolla_ansible_setup_gather_subset }}"
when:
- not ansible_facts
- name: Group hosts to determine when using --limit
group_by:
key: "all_using_limit_{{ (ansible_play_batch | length) != (groups['all'] | length) }}"
changed_when: false
tags: always
# NOTE(pbourke): This case covers deploying subsets of hosts using --limit. The