mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-06 10:40:36 -07:00
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 <es.rosenberg+github@gmail.com>
This commit is contained in:
parent
321309bf0f
commit
4f0069d511
1 changed files with 4 additions and 4 deletions
|
@ -37,22 +37,22 @@
|
||||||
- locked_user_creation.query_result[0][0] is not search('ACCOUNT LOCK')
|
- locked_user_creation.query_result[0][0] is not search('ACCOUNT LOCK')
|
||||||
|
|
||||||
- name: 'Mysql_user Lock user | create locked | Idempotence check'
|
- name: 'Mysql_user Lock user | create locked | Idempotence check'
|
||||||
|
check_mode: true
|
||||||
community.mysql.mysql_user:
|
community.mysql.mysql_user:
|
||||||
<<: *mysql_params
|
<<: *mysql_params
|
||||||
name: mysql_locked_user
|
name: mysql_locked_user
|
||||||
locked: true
|
locked: true
|
||||||
check_mode: true
|
|
||||||
priv:
|
priv:
|
||||||
'mysql_lock_user_test.*': 'SELECT'
|
'mysql_lock_user_test.*': 'SELECT'
|
||||||
register: idempotence_check
|
register: idempotence_check
|
||||||
failed_when: idempotence_check is changed
|
failed_when: idempotence_check is changed
|
||||||
|
|
||||||
- name: 'Mysql_user Lock user | create locked | Unlock test user check_mode: true'
|
- name: 'Mysql_user Lock user | create locked | Unlock test user check_mode: true'
|
||||||
|
check_mode: true
|
||||||
community.mysql.mysql_user:
|
community.mysql.mysql_user:
|
||||||
<<: *mysql_params
|
<<: *mysql_params
|
||||||
name: mysql_locked_user
|
name: mysql_locked_user
|
||||||
locked: false
|
locked: false
|
||||||
check_mode: true
|
|
||||||
priv:
|
priv:
|
||||||
'mysql_lock_user_test.*': 'SELECT'
|
'mysql_lock_user_test.*': 'SELECT'
|
||||||
|
|
||||||
|
@ -107,22 +107,22 @@
|
||||||
- locked_user_creation.query_result[0][0] is search('ACCOUNT LOCK')
|
- locked_user_creation.query_result[0][0] is search('ACCOUNT LOCK')
|
||||||
|
|
||||||
- name: 'Mysql_user Lock user | create unlocked | Idempotence check'
|
- name: 'Mysql_user Lock user | create unlocked | Idempotence check'
|
||||||
|
check_mode: true
|
||||||
community.mysql.mysql_user:
|
community.mysql.mysql_user:
|
||||||
<<: *mysql_params
|
<<: *mysql_params
|
||||||
name: mysql_locked_user
|
name: mysql_locked_user
|
||||||
locked: false
|
locked: false
|
||||||
check_mode: true
|
|
||||||
priv:
|
priv:
|
||||||
'mysql_lock_user_test.*': 'SELECT'
|
'mysql_lock_user_test.*': 'SELECT'
|
||||||
register: idempotence_check
|
register: idempotence_check
|
||||||
failed_when: idempotence_check is changed
|
failed_when: idempotence_check is changed
|
||||||
|
|
||||||
- name: 'Mysql_user Lock user | create unlocked | Lock test user check_mode: true'
|
- name: 'Mysql_user Lock user | create unlocked | Lock test user check_mode: true'
|
||||||
|
check_mode: true
|
||||||
community.mysql.mysql_user:
|
community.mysql.mysql_user:
|
||||||
<<: *mysql_params
|
<<: *mysql_params
|
||||||
name: mysql_locked_user
|
name: mysql_locked_user
|
||||||
locked: true
|
locked: true
|
||||||
check_mode: true
|
|
||||||
priv:
|
priv:
|
||||||
'mysql_lock_user_test.*': 'SELECT'
|
'mysql_lock_user_test.*': 'SELECT'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue