mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-22 04:40:23 -07:00
chore: fix conditional statements should not include jinja 2 templating (#599)
Thanks to @tompal3 for your contribution
This commit is contained in:
parent
8dfab12bae
commit
81ab18d56c
5 changed files with 87 additions and 45 deletions
|
@ -117,8 +117,8 @@
|
|||
- name: Assert grant access for user1 on multiple database
|
||||
assert:
|
||||
that:
|
||||
- "'{{ item }}' in result.stdout"
|
||||
with_items: "{{ db_names }}"
|
||||
- item in result.stdout
|
||||
loop: "{{ db_names }}"
|
||||
|
||||
- name: Show grants access for user2 on multiple database
|
||||
command: "{{ mysql_command }} -e \"SHOW GRANTS FOR '{{ user_name_2 }}'@'localhost'\""
|
||||
|
@ -127,8 +127,8 @@
|
|||
- name: Assert grant access for user2 on multiple database
|
||||
assert:
|
||||
that:
|
||||
- "'{{ item }}' in result.stdout"
|
||||
with_items: "{{db_names}}"
|
||||
- item in result.stdout
|
||||
loop: "{{db_names}}"
|
||||
|
||||
- include_tasks: utils/remove_user.yml
|
||||
vars:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue