questions
This commit is contained in:
parent
2f82ac3629
commit
1d9bf6fd09
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ def runAnsiblePlaybook(config, key):
|
|||
extra_vars={}
|
||||
if 'questions' in config['ansible_playbooks'][key]:
|
||||
for question in config['ansible_playbooks'][key]['questions']:
|
||||
extra_vars[question['var_name']] = prompt(question)
|
||||
var_name = question.pop('var_name')
|
||||
extra_vars[var_name] = prompt(question)
|
||||
|
||||
if 'extra_vars' in config['ansible_playbooks'][key]:
|
||||
extra_vars = extra_vars | config['ansible_playbooks'][key]['extra_vars']
|
||||
|
|
Loading…
Reference in a new issue