Hi,
2 servers - Master and Slave
Playbook looks like this:
- {role: A, when: srv_role == “master”}
- {role: B, when: srv_role == “slave”}
role A:
-
name: foo1
shell: bar1
register: foobar1 -
name: foo2
shell: bar2
when: foobar1 == “XXX”
I will get an error from server B:
fatal: => Conditional expression must evaluate to True or False: {% if test_exists.rc == 0 %} True {% else %} False {% endif %}
I think server B should not be influence by this - in verbose mode I can see that server is skipping steps in that role.
Filip