Use default filter <https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#defaulting-undefined-variables> or Prompt <https://docs.ansible.com/ansible/latest/user_guide/playbooks_prompts.html> or env lookup <https://docs.ansible.com/ansible/latest/plugins/lookup/env.html>
On Tue, Jul 21, 2020 at 2:33 PM Siddhartha Gaurav <[email protected]> wrote: > Hi All, > > Could you please help me to sort out one issue in my playbook. Below is > the requested query: > > I want some users input for my playbook...but I want to prompt the user > when those parameters are not available in my .env file. What module should > I use? Please help. \ > > Thanks in advance. > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/e83e34c6-2f96-419f-8a10-06731439ef48o%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/e83e34c6-2f96-419f-8a10-06731439ef48o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Thanks, Abhijeet Kasurde -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAFwWkHr0rFN2QLjwepbHLwCgWynaCGuG%2BgFbPOpWhfmYKnMD-w%40mail.gmail.com.
