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: if len(extra_vars) > 0:
subprocess.check_call(['ansible-playbook', config['ansible_playbooks'][key]['playbook'], 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']) cwd=config['base_path'])
else: else:
subprocess.check_call(['ansible-playbook', config['ansible_playbooks'][key]['playbook']], cwd=config['base_path']) subprocess.check_call(['ansible-playbook', config['ansible_playbooks'][key]['playbook']], cwd=config['base_path'])