Hi,
This is probably a very silly mistake on my part, but I cannot seem to get con-/disjunctions working in when statements. See this setup:
hosts:
Hi,
This is probably a very silly mistake on my part, but I cannot seem to get con-/disjunctions working in when statements. See this setup:
hosts:
The problem is with the way you set your ‘vars’ up. You probably want:
vars:
b: yes
Starting a line with a ‘-’ tells it that you are defining a list. However in this specific case, it just ignores the definition of ‘b’. So due to your vars not actually being defined you get ‘error while evaluating conditional: a and b’
when in doubt, the debug statement is useful!