fix string templating for ansible devel (core 2.19, 12 beta)

This commit is contained in:
Laurent Indermuehle 2025-04-24 19:10:54 +02:00
parent b26235b7d7
commit cf57ab9dda
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
4 changed files with 7 additions and 6 deletions

View file

@ -337,5 +337,6 @@
- name: Assert that stopslave returns expected error message
assert:
that:
- result.msg == "value of mode must be one of{{ ":" }} getprimary, getreplica, changeprimary, stopreplica, startreplica, resetprimary, resetreplica, resetreplicaall, changereplication, got{{ ":" }} stopslave"
-
"result.msg == 'value of mode must be one of: getprimary, getreplica, changeprimary, stopreplica, startreplica, resetprimary, resetreplica, resetreplicaall, changereplication, got: stopslave'"
- result is failed

View file

@ -55,5 +55,5 @@
- assert:
that:
- replica_status.SQL_Delay == {{ test_primary_delay }}
- replica_status.SQL_Delay == test_primary_delay
- replica_status is not changed

View file

@ -220,7 +220,7 @@
- name: Privs | Assert that 'GRANT' permission is present
assert:
that:
- mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y'
- mysql_info_about_users.users.localhost.db_user2.Grant_priv == 'Y'
- name: Privs | Test idempotency (expect ok)
mysql_user:
@ -246,7 +246,7 @@
- name: Privs | Assert that 'GRANT' permission is present (by host)
assert:
that:
- mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y'
- mysql_info_about_users.users.localhost.db_user2.Grant_priv == 'Y'
# ============================================================
- name: Privs | Update user with invalid privileges

View file

@ -33,5 +33,5 @@
assert:
that:
- result is changed
- "'{{ var_name }}' in result.stdout"
- "'{{ var_value }}' in result.stdout"
- var_name | string in result.stdout
- var_value | string in result.stdout