Add filter "bool" to prevent issues

This commit is contained in:
Laurent Indermuehle 2022-08-22 14:31:00 +02:00
commit f84fd3b8cf
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -13,7 +13,7 @@
- name: assert a change occurred
assert:
that:
- "result.changed == {{ expect_change }}"
- "result.changed | bool == {{ expect_change }} | bool"
- "result.password_changed == {{ expect_password_change }}"
- name: query the user
command: "{{ mysql_command }} -BNe \"SELECT plugin, authentication_string FROM mysql.user where user='{{ username }}' and host='{{ host }}'\""