mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-03 12:44:25 -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 }}'; \
|
||||
GRANT REPLICATION SLAVE ON *.* TO \
|
||||
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
|
||||
GRANT CONNECTION_ADMIN ON *.* TO \
|
||||
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
|
||||
GRANT BACKUP_ADMIN ON *.* TO \
|
||||
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
|
||||
GRANT GROUP_REPLICATION_STREAM ON *.* TO \
|
||||
'{{ group_replication_user }}'@'{{ mysql_host }}';\" | {{ mysql_command }}"
|
||||
when: db_version is version('8.0.0', '>=')
|
||||
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
|
||||
FLUSH PRIVILEGES;\" | {{ mysql_command }}"
|
||||
when: db_engine == 'mysql' and db_version is version('8.0.0', '>=')
|
||||
|
||||
- name: Create group replication user for MariaDB
|
||||
shell:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue