mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-04 13:14:26 -07:00
fix missing mysql def in script
This commit is contained in:
parent
a2dff5c61c
commit
1a7b06b14d
1 changed files with 5 additions and 2 deletions
|
@ -17,11 +17,14 @@
|
||||||
IDENTIFIED {% if db_engine == 'mysql' %}WITH mysql_native_password {% endif %}BY '{{ group_replication_pass }}'; \
|
IDENTIFIED {% if db_engine == 'mysql' %}WITH mysql_native_password {% endif %}BY '{{ group_replication_pass }}'; \
|
||||||
GRANT REPLICATION SLAVE ON *.* TO \
|
GRANT REPLICATION SLAVE ON *.* TO \
|
||||||
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
|
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
|
||||||
|
GRANT CONNECTION_ADMIN ON *.* TO \
|
||||||
|
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
|
||||||
GRANT BACKUP_ADMIN ON *.* TO \
|
GRANT BACKUP_ADMIN ON *.* TO \
|
||||||
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
|
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
|
||||||
GRANT GROUP_REPLICATION_STREAM ON *.* TO \
|
GRANT GROUP_REPLICATION_STREAM ON *.* TO \
|
||||||
'{{ group_replication_user }}'@'{{ mysql_host }}';\" | {{ mysql_command }}"
|
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
|
||||||
when: db_version is version('8.0.0', '>=')
|
FLUSH PRIVILEGES;\" | {{ mysql_command }}"
|
||||||
|
when: db_engine == 'mysql' and db_version is version('8.0.0', '>=')
|
||||||
|
|
||||||
- name: Create group replication user for MariaDB
|
- name: Create group replication user for MariaDB
|
||||||
shell:
|
shell:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue