Ansible
Logical 'OR' in when statement?
Archives
Ansible Project
John_Oliver
(John Oliver)
August 14, 2014, 5:32pm
1
Can I execute an action when variable1=x OR variable2=y?
Michael_DeHaan1
(Michael DeHaan)
August 14, 2014, 5:51pm
2
Yep!
shell: echo hi
when: variable1 == x and variable2 == y
Related topics
Topic
Replies
Views
Activity
Evaluating 'or' in when: conditional
Ansible Project
1
13
January 27, 2015
Boolean variables and when condition
Ansible Project
3
243
July 2, 2014
How can I do multiple tests within a single when: statement
Ansible Project
13
9
October 6, 2014
Conditionals - when: <var1> and <var2> is defined works in a weird way
Ansible Project
7
32
February 4, 2014
when: syntax
Ansible Project
3
8
May 28, 2013