Skip to content

Commit bce891e

Browse files
author
donat-b
committed
Fix mysql_replication conditionals for Ansible 2.2
1 parent 34e4eca commit bce891e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/replication.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
delegate_to: "{{ mysql_replication_master }}"
2525
register: master
2626
when: >
27-
slave|failed
27+
slave.Is_Slave is defined and not slave.Is_Slave
2828
and (mysql_replication_role == 'slave')
2929
and (mysql_replication_master != '')
3030
@@ -38,14 +38,14 @@
3838
master_log_pos: "{{ master.Position }}"
3939
ignore_errors: True
4040
when: >
41-
slave|failed
41+
slave.Is_Slave is defined and not slave.Is_Slave
4242
and (mysql_replication_role == 'slave')
4343
and (mysql_replication_master != '')
4444
and mysql_replication_user
4545
4646
- name: Start replication.
4747
mysql_replication: mode=startslave
4848
when: >
49-
slave|failed
49+
slave.Is_Slave is defined and not slave.Is_Slave
5050
and (mysql_replication_role == 'slave')
5151
and (mysql_replication_master != '')

0 commit comments

Comments
 (0)