Correction runPulledAnsiblePlaybook

This commit is contained in:
Olivier Navas 2024-10-28 16:52:41 +01:00
parent 8e30083bc7
commit 35289257fc

View file

@ -36,7 +36,7 @@ def runLocalAnsiblePlaybook(playbook, chdir, extra_vars={}):
def runPulledAnsiblePlaybook(playbook, url, extra_vars={}):
if len(extra_vars) > 0:
subprocess.check_call(['ansible-playbook', playbook,
subprocess.check_call(['ansible-pull', '-U', url, playbook,
'--extra-vars', json.dumps(extra_vars) ])
else:
subprocess.check_call(['ansible-pull', '-U', url, playbook])