Revert "Add environment variables for better var handling"

This reverts commit 5dad0c3576.

Reason for revert: This broke ceph scenarios because it still relies
on ansible_* facts. Need to address the external deploy task execution.

Change-Id: Ib6f3d53eb4d82288a14059c17d950cf306024773
Closes-Bug: #1917621
This commit is contained in:
Alex Schultz 2021-03-03 14:17:13 +00:00
parent 5dad0c3576
commit 6aa5a92e35
1 changed files with 0 additions and 5 deletions

View File

@ -568,11 +568,6 @@ def run_ansible_playbook(playbook, inventory, workdir, playbook_dir=None,
env['ANSIBLE_TRANSPORT'] = connection
env['ANSIBLE_CACHE_PLUGIN_TIMEOUT'] = 7200
# Set var handling for better performance
env['ANSIBLE_INJECT_FACT_VARS'] = False
env['ANSIBLE_VARS_PLUGIN_STAGE'] = 'inventory'
env['ANSIBLE_GATHER_SUBSET'] = '!all,min'
if connection == 'local':
env['ANSIBLE_PYTHON_INTERPRETER'] = sys.executable