questions
This commit is contained in:
parent
1d9bf6fd09
commit
e79dc55b96
1 changed files with 1 additions and 1 deletions
|
@ -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'])
|
||||||
|
|
Loading…
Reference in a new issue