Logical 'OR' in when statement?

Can I execute an action when variable1=x OR variable2=y?

Yep!

  • shell: echo hi
    when: variable1 == x and variable2 == y