mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-03 20:54:25 -07:00
Add one more check
This commit is contained in:
parent
e0f5462037
commit
3325643438
1 changed files with 20 additions and 0 deletions
|
@ -579,6 +579,7 @@
|
|||
host: '%'
|
||||
plugin: caching_sha2_password
|
||||
plugin_hash_string: '{{ test_plugin_hash }}'
|
||||
salt: '{{ test_salt }}'
|
||||
priv: '{{ test_default_priv }}'
|
||||
check_mode: true
|
||||
register: result
|
||||
|
@ -597,6 +598,7 @@
|
|||
host: '%'
|
||||
plugin: caching_sha2_password
|
||||
plugin_hash_string: '{{ test_plugin_hash }}'
|
||||
salt: '{{ test_salt }}'
|
||||
priv: '{{ test_default_priv }}'
|
||||
register: result
|
||||
failed_when: result is not changed
|
||||
|
@ -606,3 +608,21 @@
|
|||
vars:
|
||||
user_name: "{{ test_user_name }}"
|
||||
plugin_type: caching_sha2_password
|
||||
|
||||
- name: Plugin auth | Change user plugin again (should not change)
|
||||
community.mysql.mysql_user:
|
||||
<<: *mysql_params
|
||||
name: '{{ test_user_name }}'
|
||||
host: '%'
|
||||
plugin: caching_sha2_password
|
||||
plugin_hash_string: '{{ test_plugin_hash }}'
|
||||
salt: '{{ test_salt }}'
|
||||
priv: '{{ test_default_priv }}'
|
||||
register: result
|
||||
failed_when: result is changed
|
||||
|
||||
- name: Plugin auth | Check that the expected (not changed) plugin type is set
|
||||
ansible.builtin.include_tasks: utils/assert_plugin.yml
|
||||
vars:
|
||||
user_name: "{{ test_user_name }}"
|
||||
plugin_type: caching_sha2_password
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue