Merge "Reduce fact gathering"

This commit is contained in:
Zuul 2021-02-22 19:50:13 +00:00 committed by Gerrit Code Review
commit a3b2d77bdd
1 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,9 @@ def write_default_ansible_cfg(work_dir,
config.set('defaults', 'fact_caching', 'jsonfile')
config.set('defaults', 'fact_caching_connection',
'~/.ansible/fact_cache')
# NOTE(mwhahaha): only gather the bare minimum facts because this has
# direct impact on how fast ansible can go.
config.set('defaults', 'gather_subset', '!all,min')
# Set the pull interval to lower CPU overhead
config.set('defaults', 'internal_poll_interval', '0.01')