Hello 

Here are the two scenarios:
1) This one works:  
when: ansible_hostname | search("test1-1-xx-1")
2)This one is not able to match the string probably because of dots
when: ansible_hostname | search("test1-1-xx-1.tom.com")
I even tried escapting dots with a backslash without any success.

Any help would be appreciated.

-- 
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/a24a16eb-3a70-458d-a217-f3c56612581d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to