mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-03 12:44:25 -07:00
test_mysql_role : create checks for mariadb
This commit is contained in:
parent
8fc5840090
commit
56a9e3f664
1 changed files with 15 additions and 0 deletions
|
@ -524,11 +524,26 @@
|
|||
mysql_query:
|
||||
<<: *mysql_params
|
||||
query: "SELECT 1 FROM mysql.user WHERE User = '{{ role0 }}' AND Host = '%'"
|
||||
when: install_type == 'mysql'
|
||||
|
||||
- name: Check
|
||||
assert:
|
||||
that:
|
||||
- result.rowcount.0 == 0
|
||||
when: install_type == 'mysql'
|
||||
|
||||
- name: Check in DB (mariadb)
|
||||
<<: *task_params
|
||||
mysql_query:
|
||||
<<: *mysql_params
|
||||
query: "SELECT 1 FROM mysql.user WHERE User = '{{ role0 }}' AND Host = ''"
|
||||
when: install_type == 'mariadb'
|
||||
|
||||
- name: Check (mariadb)
|
||||
assert:
|
||||
that:
|
||||
- result.rowcount.0 == 0
|
||||
when: install_type == 'mariadb'
|
||||
|
||||
#========================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue