Merge "fact gathering: Remove gathering of package facts"
This commit is contained in:
commit
5fddabaf55
@ -19,13 +19,6 @@
|
||||
when:
|
||||
- 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) }}"
|
||||
@ -64,14 +57,4 @@
|
||||
# We gathered facts for all hosts in the batch during the first play.
|
||||
when:
|
||||
- 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
|
||||
|
Loading…
Reference in New Issue
Block a user