Skip to content

Commit

Permalink
Merge "fact gathering: Group hosts before gathering facts" into stabl…
Browse files Browse the repository at this point in the history
…e/2023.1
  • Loading branch information
Zuul authored and openstack-gerrit committed Oct 9, 2024
2 parents 62a91c1 + 1a8c74a commit ec4f728
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ansible/gather-facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
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:
# Don't gather if fact caching is in use
- 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
Expand Down

0 comments on commit ec4f728

Please sign in to comment.