From 4f0069d511ec352d13339c1646acd1168318bba3 Mon Sep 17 00:00:00 2001 From: "E.S. Rosenberg a.k.a. Keeper of the Keys" Date: Mon, 10 Mar 2025 23:23:04 +0200 Subject: [PATCH] check_mode is set at the task level and not the module level Signed-off-by: E.S. Rosenberg a.k.a. Keeper of the Keys --- .../targets/test_mysql_user/tasks/test_user_locking.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/targets/test_mysql_user/tasks/test_user_locking.yml b/tests/integration/targets/test_mysql_user/tasks/test_user_locking.yml index f9bd07b..9897e18 100644 --- a/tests/integration/targets/test_mysql_user/tasks/test_user_locking.yml +++ b/tests/integration/targets/test_mysql_user/tasks/test_user_locking.yml @@ -37,22 +37,22 @@ - locked_user_creation.query_result[0][0] is not search('ACCOUNT LOCK') - name: 'Mysql_user Lock user | create locked | Idempotence check' + check_mode: true community.mysql.mysql_user: <<: *mysql_params name: mysql_locked_user locked: true - check_mode: true priv: 'mysql_lock_user_test.*': 'SELECT' register: idempotence_check failed_when: idempotence_check is changed - name: 'Mysql_user Lock user | create locked | Unlock test user check_mode: true' + check_mode: true community.mysql.mysql_user: <<: *mysql_params name: mysql_locked_user locked: false - check_mode: true priv: 'mysql_lock_user_test.*': 'SELECT' @@ -107,22 +107,22 @@ - locked_user_creation.query_result[0][0] is search('ACCOUNT LOCK') - name: 'Mysql_user Lock user | create unlocked | Idempotence check' + check_mode: true community.mysql.mysql_user: <<: *mysql_params name: mysql_locked_user locked: false - check_mode: true priv: 'mysql_lock_user_test.*': 'SELECT' register: idempotence_check failed_when: idempotence_check is changed - name: 'Mysql_user Lock user | create unlocked | Lock test user check_mode: true' + check_mode: true community.mysql.mysql_user: <<: *mysql_params name: mysql_locked_user locked: true - check_mode: true priv: 'mysql_lock_user_test.*': 'SELECT'