test_mysql_role : create checks for mariadb

This commit is contained in:
R. Sicart 2021-12-03 13:26:50 +01:00
commit 56a9e3f664

View file

@ -524,11 +524,26 @@
mysql_query: mysql_query:
<<: *mysql_params <<: *mysql_params
query: "SELECT 1 FROM mysql.user WHERE User = '{{ role0 }}' AND Host = '%'" query: "SELECT 1 FROM mysql.user WHERE User = '{{ role0 }}' AND Host = '%'"
when: install_type == 'mysql'
- name: Check - name: Check
assert: assert:
that: that:
- result.rowcount.0 == 0 - 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'
#======================== #========================