Looks like you are missing a tasks section and also have some indent issues.




On Mon, Aug 18, 2014 at 6:55 AM, Imran Khan <khan.imran2...@gmail.com>
wrote:

> I have a tikitaka3.yml (main yml file) and a tikitaka3a.yml (playbook to
> be included) . When I prompt the user for a variable and then in the tasks
> section when I call it, like so
>
> ---
> - hosts: all
>
>  vars:
>    khan:
>
>   vars_prompt:
> - name: targetenv
>   prompt: "Select group to modify 1.)EPC 2.)CLIENTS 3)TESTERS"
>   private: False
>   default: "1"
>
>
> - name: Inlude playbook tikitaka3a
>   include: /home/khan/Desktop/playbooks/tikitaka3a.yml target=targetenv
>   when: targetenv.stdout|int < 2 #this condition does not work, explained 
> below
>   #when: targetenv == 1 or "1" #this doesn't work either
>
> - name: Debugging
>   debug: var=targetenv.stdout
>
> I get this error when I run the playbook *"ERROR: vars_prompt is not a
> legal parameter in an Ansible task or handler"*
>
> --
> 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
> https://groups.google.com/d/msgid/ansible-project/61a62923-7904-4a0e-9886-7239d53d67bb%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/61a62923-7904-4a0e-9886-7239d53d67bb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgyCEB8-1_icOyAfP3SsK9hLXOCeJee4hPEoNnZSAz15mw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to