Hi all,
Why when i use prompt in playbook.yml it’s works but not in /roles/tasks/main.yml ??
- vars_prompt:
- name: reponse
prompt: “Voulez-vous effectuer ce deploiement ? (o/n)”
When i use prompt in my main playbook it’s work when i launch this line commande :
ansible-playbook playbook.yml
Pcis1
(Pcis)
2
To prompt in a task you have to pause, you can only prompt without a pause inside - vars_prompt:
e.g.
under tasks use:
- pause:
prompt: “Voulez-vous effectuer ce deploiement ? (o/n)”
register: response
Thank you for your answer Pcis !!
In the ansible documentation, there is not this explication.
Now it’s work !! ^^
You are the best
subject solved