From 56b833f044757f7deacd9870780235eff3c8c3db Mon Sep 17 00:00:00 2001 From: Olivier Date: Sat, 19 Oct 2024 17:20:13 +0200 Subject: [PATCH] questions --- linuxinstaller/AnsibleActions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linuxinstaller/AnsibleActions.py b/linuxinstaller/AnsibleActions.py index ffd843a..6042864 100644 --- a/linuxinstaller/AnsibleActions.py +++ b/linuxinstaller/AnsibleActions.py @@ -8,7 +8,7 @@ def runAnsiblePlaybook(config, key): if 'questions' in config['ansible_playbooks'][key]: for question in config['ansible_playbooks'][key]['questions']: var_name = question.pop('var_name') - extra_vars[var_name] = prompt(question) + extra_vars[var_name] = prompt(question)[0] if 'extra_vars' in config['ansible_playbooks'][key]: extra_vars = extra_vars | config['ansible_playbooks'][key]['extra_vars']