Speed up ansible facts gathering

Restrict network from gathering of unrelated facts.
That can be slow on systems with complex network configurations.

Change-Id: I2c58e5c1175ea9d77136c45fd58109bdacda8cef
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
Bogdan Dobrelya 2020-10-08 16:37:24 +02:00
parent d33cb5488a
commit cb6a79ccc4
2 changed files with 4 additions and 0 deletions

View File

@ -54,6 +54,8 @@
- name: Refresh hardware facts
setup:
gather_subset:
- '!all'
- '!min'
- hardware
- name: Un-mount docker directories

View File

@ -24,6 +24,8 @@
- name: Collect only facts returned by facter
setup:
gather_subset:
- '!all'
- '!any'
- network
# NOTE(cloudnull): In the future, we could potentially revisit this once the Heat