questions

This commit is contained in:
Navas 2024-10-19 17:19:04 +02:00
parent 1d9bf6fd09
commit e79dc55b96

View file

@ -15,7 +15,7 @@ def runAnsiblePlaybook(config, key):
if len(extra_vars) > 0:
subprocess.check_call(['ansible-playbook', config['ansible_playbooks'][key]['playbook'],
'--extra-vars', json.dumps(config['ansible_playbooks'][key]['extra_vars']) ],
'--extra-vars', json.dumps(extra_vars) ],
cwd=config['base_path'])
else:
subprocess.check_call(['ansible-playbook', config['ansible_playbooks'][key]['playbook']], cwd=config['base_path'])