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
When Or statement
Ansible Project
5
0
December 1, 2020
Evaluating 'or' in when: conditional
Ansible Project
1
0
January 27, 2015
Either/or tasks
Ansible Project
4
0
January 5, 2015
When condition 'or' structure question
Ansible Project
3
1
September 10, 2019
Complex conditionnal when statement - second part is not evaluated
Ansible Project
0
0
May 11, 2017