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 [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/61a62923-7904-4a0e-9886-7239d53d67bb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
