Use 'all' for ANSIBLE_VARS_PLUGIN_STAGE

ANSIBLE_VARS_PLUGIN_STAGE=inventory doesn't work with implicit
localhost in Ansible 2.11, use 'all' instead.
See https://github.com/ansible/ansible/issues/72590

Change-Id: Idc9e36563854b7e6590f74f14774d506c5dbc4c3
This commit is contained in:
Sagi Shnaidman 2021-07-15 17:49:37 +03:00 committed by Shnaidman Sagi (Sergey)
parent c4ecb30d6e
commit 26213f3a11
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ def run_ansible_playbook(playbook, inventory, workdir, playbook_dir=None,
# Set var handling for better performance
env['ANSIBLE_INJECT_FACT_VARS'] = False
env['ANSIBLE_VARS_PLUGIN_STAGE'] = 'inventory'
env['ANSIBLE_VARS_PLUGIN_STAGE'] = 'all'
env['ANSIBLE_GATHER_SUBSET'] = '!all,min'
if connection == 'local':