mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-04 13:14:26 -07:00
Fix: test_mysql_role : Check in DB, if not granted, the query will fail for mariadb
This commit is contained in:
parent
5e4f3653ed
commit
e864d510a1
1 changed files with 8 additions and 0 deletions
|
@ -173,6 +173,14 @@
|
||||||
mysql_query:
|
mysql_query:
|
||||||
<<: *mysql_params
|
<<: *mysql_params
|
||||||
query: "SHOW GRANTS FOR {{ user0 }}@localhost USING '{{ role0 }}'"
|
query: "SHOW GRANTS FOR {{ user0 }}@localhost USING '{{ role0 }}'"
|
||||||
|
when: install_type == 'mysql'
|
||||||
|
|
||||||
|
- name: Check in DB, if not granted, the query will fail (mariadb)
|
||||||
|
<<: *task_params
|
||||||
|
mysql_query:
|
||||||
|
<<: *mysql_params
|
||||||
|
query: "SELECT 1 FROM mysql.roles_mapping WHERE User = '{{ role0 }}' AND Host = 'localhost' AND Role = '{{ role0 }}'"
|
||||||
|
when: install_type == 'mariadb'
|
||||||
|
|
||||||
- name: Check
|
- name: Check
|
||||||
assert:
|
assert:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue