Skip to content

Commit

Permalink
Merge "fact gathering: Remove gathering of package facts" into stable…
Browse files Browse the repository at this point in the history
…/2023.1
  • Loading branch information
Zuul authored and openstack-gerrit committed Oct 9, 2024
2 parents 89afea5 + 0cc9990 commit 62a91c1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions ansible/gather-facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@
# Don't gather if fact caching is in use
- not ansible_facts

- name: Gather package facts
package_facts:
when:
- "'packages' not in ansible_facts"
- kolla_action is defined
- kolla_action == "precheck"

- name: Group hosts to determine when using --limit
group_by:
key: "all_using_limit_{{ (ansible_play_batch | length) != (groups['all'] | length) }}"
Expand Down Expand Up @@ -58,14 +51,4 @@
- item not in groups["all_using_limit_True"]
# Don't gather if fact caching is in use
- not hostvars[item].ansible_facts

- name: Gather package facts
package_facts:
delegate_facts: True
delegate_to: "{{ item }}"
with_items: "{{ delegate_hosts }}"
when:
- "'packages' not in hostvars[item].ansible_facts"
- kolla_action is defined
- "kolla_action == 'precheck'"
tags: always

0 comments on commit 62a91c1

Please sign in to comment.