Hi guys,

I have a situation where I need to run one task in only one server of a 
particular group.

For example i have inventory as below
[aws]
server1
server2

[gcp]
server3
server4

now I need to run a task on whichever server connects first and task should be 
run only once.
I am using when condition to run tasks on gcp group as " inventory_hostname in 
groups['gcp'] " but when I use run_once: true it is taking the server1 from aws 
group and whole task is getting skipped.

Please help and guide me.

Regards,
Soumya

-- 
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/b803b215-541f-48ba-ae0a-f05b31762506o%40googlegroups.com.

Reply via email to