Skip to content

Commit 3adf6e0

Browse files
Fix replication not starting.
1 parent 53eeb74 commit 3adf6e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/replication.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
- name: Start replication.
5353
mysql_replication: mode=startreplica
5454
when:
55-
- (slave.Is_Slave is defined and not slave.Is_Slave) or (slave.Is_Slave is not defined and slave is failed)
55+
- (slave.Is_Slave is defined and slave.Is_Slave) or (slave.Is_Replica is defined and slave.Is_Replica) or (slave.Is_Slave is not defined and slave.Is_Replica is not defined and slave is failed)
5656
- mysql_replication_role == 'slave'
5757
- (mysql_replication_master | length) > 0
5858
tags: ['skip_ansible_galaxy']

0 commit comments

Comments
 (0)