Skip to content

Commit e6882e6

Browse files
committed
Stop ignoring ansible-lint rule 602.
1 parent 0f6ea1f commit e6882e6

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.ansible-lint

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
skip_list:
2-
- '602'
32
- '204'

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 != ''
12+
- mysql_replication_master | bool
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 != ''
24+
- mysql_replication_master | bool
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 != ''
34+
- mysql_replication_master | bool
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 != ''
50+
- mysql_replication_master | bool
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 != ''
57+
- mysql_replication_master | bool
5858
tags: ['skip_ansible_galaxy']

0 commit comments

Comments
 (0)