and my tasks are inside the windows role with same tag name is there any chance of putting when condition to this hosts variable in tasks so I can diffrentiate the execution for two windows hosts.
I have two windows devices which deals differenct tasks.
Thanks in advance.
Hi,
when: inventory_hostname in groups['small_group']Or when: inventory_hostname == {{ windows_hostname1 }}
--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3dbdf35b-0b0e-40f4-82d1-b98787a12e6fn%40googlegroups.com.