diff --git a/test/integration/roles/test_mysql_user/tasks/create_user.yml b/test/integration/roles/test_mysql_user/tasks/create_user.yml index 6122098e1e..e7b0d7a33b 100644 --- a/test/integration/roles/test_mysql_user/tasks/create_user.yml +++ b/test/integration/roles/test_mysql_user/tasks/create_user.yml @@ -21,5 +21,5 @@ mysql_user: name={{user_name}} password={{user_password}} state=present register: result -- name: assert output message mysql user was created {{state}} +- name: assert output message mysql user was created assert: { that: "result.changed == true" } diff --git a/test/integration/roles/test_mysql_user/tasks/remove_user.yml b/test/integration/roles/test_mysql_user/tasks/remove_user.yml index 76eca35b87..ec86d2fcf8 100644 --- a/test/integration/roles/test_mysql_user/tasks/remove_user.yml +++ b/test/integration/roles/test_mysql_user/tasks/remove_user.yml @@ -21,5 +21,5 @@ mysql_user: name={{user_name}} password={{user_password}} state=absent register: result -- name: assert output message mysql user was removed {{state}} +- name: assert output message mysql user was removed assert: { that: "result.changed == true" }