Skip to content

Commit d9903c1

Browse files
committed
Fix some things that broke due to lint issue fixes.
1 parent e6c9725 commit d9903c1

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

tasks/configure.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@
6666
creates: "{{ mysql_log_error }}"
6767
warn: false
6868
when:
69-
- not mysql_log
70-
- mysql_log_error
69+
- mysql_log == ""
70+
- mysql_log_error != ""
71+
tags: ['skip_ansible_galaxy']
7172

7273
- name: Set ownership on error log file (if configured).
7374
file:
@@ -77,8 +78,9 @@
7778
group: "{{ mysql_log_file_group }}"
7879
mode: 0640
7980
when:
80-
- not mysql_log
81-
- mysql_log_error
81+
- mysql_log == ""
82+
- mysql_log_error != ""
83+
tags: ['skip_ansible_galaxy']
8284

8385
- name: Ensure MySQL is started and enabled on boot.
8486
service: "name={{ mysql_daemon }} state=started enabled={{ mysql_enabled_on_startup }}"

tasks/replication.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
when:
1010
- mysql_replication_role == 'master'
1111
- mysql_replication_user
12-
- mysql_replication_master
12+
- mysql_replication_master != ''
13+
tags: ['skip_ansible_galaxy']
1314

1415
- name: Check slave replication status.
1516
mysql_replication:
@@ -20,7 +21,8 @@
2021
register: slave
2122
when:
2223
- mysql_replication_role == 'slave'
23-
- mysql_replication_master
24+
- mysql_replication_master != ''
25+
tags: ['skip_ansible_galaxy']
2426

2527
- name: Check master replication status.
2628
mysql_replication: mode=getmaster
@@ -29,7 +31,8 @@
2931
when:
3032
- (slave.Is_Slave is defined and not slave.Is_Slave) or (slave.Is_Slave is not defined and slave is failed)
3133
- mysql_replication_role == 'slave'
32-
- mysql_replication_master
34+
- mysql_replication_master != ''
35+
tags: ['skip_ansible_galaxy']
3336

3437
- name: Configure replication on the slave.
3538
mysql_replication:
@@ -43,12 +46,13 @@
4346
when:
4447
- (slave.Is_Slave is defined and not slave.Is_Slave) or (slave.Is_Slave is not defined and slave is failed)
4548
- mysql_replication_role == 'slave'
46-
- mysql_replication_master
49+
- mysql_replication_master != ''
4750
- mysql_replication_user
4851

4952
- name: Start replication.
5053
mysql_replication: mode=startslave
5154
when:
5255
- (slave.Is_Slave is defined and not slave.Is_Slave) or (slave.Is_Slave is not defined and slave is failed)
5356
- mysql_replication_role == 'slave'
54-
- mysql_replication_master
57+
- mysql_replication_master != ''
58+
tags: ['skip_ansible_galaxy']

0 commit comments

Comments
 (0)