Drop inject_facts_as_vars

This setting stops ansible from converting ansible_fact items into top
level ansible_* vars. This has a huge impact on performance as this is
performed at the end of every task execution.

Depends-On: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/777239
Depends-On: https://review.opendev.org/c/openstack/tripleo-ansible/+/777237
Change-Id: I1a3c0d31cdb4a644cb950ca59c83bfcb051dc39d
(cherry picked from commit 16bc02326b)
This commit is contained in:
Alex Schultz 2021-02-19 07:39:40 -07:00
parent 4865b5d244
commit 778f35860a
1 changed files with 2 additions and 0 deletions

View File

@ -134,6 +134,8 @@ def write_default_ansible_cfg(work_dir,
# 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')
# NOTE(mwhahaha): this significantly affects performation per ansible#73654
config.set('defaults', 'inject_facts_as_vars', 'false')
# Set the pull interval to lower CPU overhead
config.set('defaults', 'internal_poll_interval', '0.05')