questions

This commit is contained in:
Navas 2024-10-19 17:15:17 +02:00
parent 867b635ba1
commit 2f82ac3629

View file

@ -7,7 +7,7 @@ def runAnsiblePlaybook(config, key):
extra_vars={} extra_vars={}
if 'questions' in config['ansible_playbooks'][key]: if 'questions' in config['ansible_playbooks'][key]:
for question in config['ansible_playbooks'][key]['questions']: for question in config['ansible_playbooks'][key]['questions']:
extra_vars[question['var_name']] = prompt(questions) extra_vars[question['var_name']] = prompt(question)
if 'extra_vars' in config['ansible_playbooks'][key]: if 'extra_vars' in config['ansible_playbooks'][key]:
extra_vars = extra_vars | config['ansible_playbooks'][key]['extra_vars'] extra_vars = extra_vars | config['ansible_playbooks'][key]['extra_vars']