ansible 2.0.2 check if a variable contain a specific value
25 views
Skip to first unread message
mondher khas
unread,
Apr 8, 2016, 3:49:10 AM4/8/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
i want to check if {{variable1}} contain a specific word for example i want to check if this variable contain the word "SNAPSHOT" or "RELEASE". is there a command can do that ?
thank you in advance .
Brian Coca
unread,
Apr 8, 2016, 12:42:24 PM4/8/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
when: "'SNAPSHOT' in variable1 or 'RELEASE' in variable1"