how to fetch substring from vairbale or ansible vriable or facts

14 views
Skip to first unread message

Sameer Modak

unread,
Aug 14, 2020, 1:40:50 PM8/14/20
to Ansible Project
Hello Team,

How can we check if variable demo01  has 01 in it in ansible. i have server with hostanme server01 and server02 i want some task to be applied to only 01 machines how can i do it.

Dick Visser

unread,
Aug 14, 2020, 1:51:12 PM8/14/20
to ansible...@googlegroups.com

On Fri, 14 Aug 2020 at 19:41, Sameer Modak <sameer.m...@gmail.com> wrote:
Hello Team,

How can we check if variable demo01  has 01 in it in ansible. i have server with hostanme server01 and server02 i want some task to be applied to only 01 machines how can i do it.








--


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/6e29bb11-b42c-44a6-aea5-ca38c6e3110co%40googlegroups.com.


--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.
Reply all
Reply to author
Forward
0 new messages