Verification that users are created missing
This makes sure that the CI also verifies that creating users during deployment works.
This commit is contained in:
parent
49c3b18424
commit
8be1a71c99
|
|
@ -119,6 +119,14 @@
|
||||||
- db1
|
- db1
|
||||||
- db2
|
- db2
|
||||||
|
|
||||||
|
- name: Check that test users exist
|
||||||
|
ansible.builtin.shell: |
|
||||||
|
mariadb -Bse 'SELECT user from mysql.user' | grep -q '^{{ item }}$'
|
||||||
|
loop:
|
||||||
|
- user1
|
||||||
|
- user2
|
||||||
|
- user3
|
||||||
|
|
||||||
- name: Do some SQL queries
|
- name: Do some SQL queries
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
mariadb -Bse 'DROP DATABASE IF EXIST db'
|
mariadb -Bse 'DROP DATABASE IF EXIST db'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue