mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-20 20:00:24 -07:00
Fix user plugin changes in check mode (#596)
* Fix user plugin changes in check mode * Add auth plugin tests * Undo local changes * Improve task names * Fix query * Changes * Add check * Add check * Add check * Add one more check * Add one more check * Fix typo * Change parameter * Testing * Remove tests * Add tests * Test first stteps * Readd tests * Test without check mode * Test with check mode * Test with check mode * Testing * Testing * Add missing tests * Changes for ansible-lint complaints * Fix condition * Update changelogs/fragments/596-fix-check-changes.yaml Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * refactor * Add more tests * Fix newpass var * Remove extra test --------- Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
This commit is contained in:
parent
87be61ccf3
commit
0de9685cf1
4 changed files with 175 additions and 68 deletions
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
|
||||
- name: Utils | Assert plugin | Query for user {{ user_name }}
|
||||
ansible.builtin.command: "{{ mysql_command }} -e \"SELECT plugin FROM mysql.user where user='{{ user_name }}'\""
|
||||
register: result
|
||||
changed_when: False
|
||||
|
||||
- name: Utils | Assert plugin | Assert plugin is correct
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- plugin_type in result.stdout
|
Loading…
Add table
Add a link
Reference in a new issue