mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 15:11:28 -07:00
cut jinja templates from conditionals
This commit is contained in:
parent
0c5e870d75
commit
e912d7e28a
10 changed files with 159 additions and 104 deletions
|
@ -45,7 +45,7 @@
|
|||
- name: Plugin auth | Check that the expected plugin type is set (with hash string)
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'{{ test_plugin_type }}' in show_create_user.stdout"
|
||||
- test_plugin_type in show_create_user.stdout
|
||||
when: db_engine == 'mysql' or (db_engine == 'mariadb' and db_version is version('10.3', '>='))
|
||||
|
||||
- ansible.builtin.include_tasks: utils/assert_user.yml
|
||||
|
|
|
@ -17,5 +17,7 @@
|
|||
- name: Utils | Assert user | Assert user has given privileges
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'GRANT {{ priv }} ON *.*' in result.stdout"
|
||||
- expected_command in result.stdout
|
||||
when: priv is defined
|
||||
vars:
|
||||
expected_command: "GRANT {{ priv }} ON *.*"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue