But if i would first ask, It will ask all the variables that are being used 
in roles A, B and C.  But i want to ask first which role to use and then i 
want to ask the variables that are being used in selected role. 

On Tuesday, 13 March 2018 15:41:18 UTC+5:30, Vyacheslav wrote:
> Why would not first ask, and than pass choice as an external variable to 
> playbook?
> You can ask with native shell support.
> On Tuesday, 13 March 2018 10:10:16 UTC+1, Mohit Dhingra wrote:
>> Hi All,
>> I want to get the variable from user. But the definition of the variable 
>> prompt has to be in the role.
>> I am using three actions, Lets say A,B and C. for every action(input from 
>> user) different roles will be called. But before calling respective role it 
>> should prompt the variable requirement of that role. So can we use variable 
>> prompt in a task. or any other solution for the same.
>> Thanks,
>> Mohit

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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to