cut jinja templates from conditionals

This commit is contained in:
Laurent Indermuehle 2025-04-25 14:44:57 +02:00
commit e912d7e28a
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
10 changed files with 159 additions and 104 deletions

View file

@ -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

View file

@ -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 *.*"