Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 9fae4c0

Browse files
committed
Update mysql role to latest version to fix replication issues.
1 parent 9324b2b commit 9fae4c0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

provisioning/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ roles:
3737
- name: geerlingguy.memcached
3838
version: 1.1.0
3939
- name: geerlingguy.mysql
40-
version: 3.2.0
40+
version: 3.3.0
4141
- name: geerlingguy.nginx
4242
version: 2.8.0
4343
- name: geerlingguy.nodejs

provisioning/roles/geerlingguy.mysql/tasks/replication.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
when:
1010
- mysql_replication_role == 'master'
1111
- mysql_replication_user.name is defined
12-
- mysql_replication_master | default(false)
12+
- (mysql_replication_master | length) > 0
1313
tags: ['skip_ansible_galaxy']
1414

1515
- name: Check slave replication status.
@@ -21,7 +21,7 @@
2121
register: slave
2222
when:
2323
- mysql_replication_role == 'slave'
24-
- mysql_replication_master | default(false)
24+
- (mysql_replication_master | length) > 0
2525
tags: ['skip_ansible_galaxy']
2626

2727
- name: Check master replication status.
@@ -31,7 +31,7 @@
3131
when:
3232
- (slave.Is_Slave is defined and not slave.Is_Slave) or (slave.Is_Slave is not defined and slave is failed)
3333
- mysql_replication_role == 'slave'
34-
- mysql_replication_master | default(false)
34+
- (mysql_replication_master | length) > 0
3535
tags: ['skip_ansible_galaxy']
3636

3737
- name: Configure replication on the slave.
@@ -47,12 +47,12 @@
4747
- (slave.Is_Slave is defined and not slave.Is_Slave) or (slave.Is_Slave is not defined and slave is failed)
4848
- mysql_replication_role == 'slave'
4949
- mysql_replication_user.name is defined
50-
- mysql_replication_master | default(false)
50+
- (mysql_replication_master | length) > 0
5151

5252
- name: Start replication.
5353
mysql_replication: mode=startslave
5454
when:
5555
- (slave.Is_Slave is defined and not slave.Is_Slave) or (slave.Is_Slave is not defined and slave is failed)
5656
- mysql_replication_role == 'slave'
57-
- mysql_replication_master | default(false)
57+
- (mysql_replication_master | length) > 0
5858
tags: ['skip_ansible_galaxy']

0 commit comments

Comments
 (0)