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


On Tuesday, February 12, 2019 at 2:52:45 PM UTC, [email protected] wrote:
>
> 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*
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f0c15bf6-629f-40c1-8859-ca501032c720%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to