File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 4
4
name : " {{ mysql_replication_user.name }}"
5
5
host : " {{ mysql_replication_user.host | default('%') }}"
6
6
password : " {{ mysql_replication_user.password }}"
7
- priv : " {{ mysql_replication_user.priv | default('*.*:REPLICATION SLAVE') }}"
7
+ priv : " {{ mysql_replication_user.priv | default('*.*:REPLICATION SLAVE,REPLICATION CLIENT ') }}"
8
8
state : present
9
9
when : >
10
10
(mysql_replication_role == 'master')
11
11
and mysql_replication_user
12
12
and (mysql_replication_master != '')
13
13
14
14
- name : Check slave replication status.
15
- mysql_replication : mode=getslave
15
+ mysql_replication :
16
+ mode : getslave
17
+ login_user : " {{ mysql_replication_user.name }}"
18
+ login_password : " {{ mysql_replication_user.password }}"
16
19
ignore_errors : true
17
20
register : slave
18
21
when : >
You can’t perform that action at this time.
0 commit comments