Browse Source

Merge "Revert "Revert "Add environment variables for better var handling""" into stable/ussuri

changes/01/784401/1
Zuul 3 weeks ago
committed by Gerrit Code Review
parent
commit
ca3f7b7a02
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      tripleoclient/utils.py

+ 5
- 0
tripleoclient/utils.py View File

@ -578,6 +578,11 @@ 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


Loading…
Cancel
Save