Merge "Speed up ansible facts gathering"

This commit is contained in:
Zuul 2020-10-10 00:50:40 +00:00 committed by Gerrit Code Review
commit 313d8125cb
2 changed files with 5 additions and 1 deletions

View File

@ -616,6 +616,7 @@ outputs:
setup:
gather_subset:
- '!all'
- '!min'
- 'hardware'
when: swift_raw_disks
- name: Mount devices defined in SwiftRawDisks

View File

@ -104,7 +104,10 @@ outputs:
upgrade_tasks:
- name: Gather missing facts
setup:
gather_subset: "distribution"
gather_subset:
- '!all'
- '!min'
- 'distribution'
when: >-
ansible_facts['distribution'] is not defined or
ansible_facts['distribution_major_version'] is not defined