Hello Venkat,

Yes of course, I suggest you take a look here:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html

However, this list is not the proper place for such questions.
I strongly recommend that you send such questions to the "ansible-project" mailing list.

Reference : https://docs.ansible.com/ansible/latest/community/communication.html#asking-questions-over-email


On 5/4/22 07:58, Venkat Eswer wrote:
shall i define variables using conditions in default/main.yml file.

ex : - host1.com
          when: env == 'dev'
        - host2.com
          when: env == 'uat'

quick response greatly appreciated

Regards
Venkat

[ -- %< --- snipped -- %< --- ]


--
Kind regards,
Anastasios Lisgaras
Open Source Software Engineer.
🔗 Keybase: https://keybase.io/tas_sos
📜 GnuPG Fingerprint: 5003 03E8 CA50 1878 06D9 3AEA FC25 8330 FE34 8E41
🖊️ Use plain text => https://useplaintext.email/

--
You received this message because you are subscribed to the Google Groups "Ansible 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/7133ef7b-7478-e47a-51b2-d15a38442ce3%40yahoo.gr.

Reply via email to