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.
R
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
--
You received this message because you are subscribed to the Google Groups
"Ansi