Hi all,

I have this file "my_file.txt" with this content :

1,user1,host1
2,user2,host2

My inventory is :

host5



I want condition "when" for skip same task if inventory_hostname is not in 
my file "my_file.txt"

exemple :

.
same tasks
.
.
*when: inventory_hostname not in ./my_file.txt*

but this synthax not works ;(

can you help me please community ansible !! ;)

Thanks you ! :)

Regards,

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9b5fbb57-2fea-4317-a0ed-87d7cac3dea5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to