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
shall i define variables using conditions in default/main.yml file.
ex : - host1.com
when: env == ‘dev’
quick response greatly appreciated
Regards
Venkat
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