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

Le mardi 12 février 2019 16:06:09 UTC+1, Pcis a écrit :
>
> 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/eb409162-511f-45e4-a1d5-925c4462618a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to