mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 15:11:28 -07:00
mysql_user: fix parsing privs when a user has roles assigned to it (#345)
This commit is contained in:
parent
65eb142960
commit
cc78846f22
6 changed files with 133 additions and 0 deletions
|
@ -1540,3 +1540,24 @@
|
|||
- '{{ test_db }}'
|
||||
- '{{ test_db1 }}'
|
||||
- '{{ test_db2 }}'
|
||||
|
||||
- name: Drop users
|
||||
<<: *task_params
|
||||
mysql_user:
|
||||
<<: *mysql_params
|
||||
name: '{{ item }}'
|
||||
state: absent
|
||||
loop:
|
||||
- '{{ user0 }}'
|
||||
- '{{ user1 }}'
|
||||
- '{{ user2 }}'
|
||||
|
||||
- name: Drop roles
|
||||
<<: *task_params
|
||||
mysql_role:
|
||||
<<: *mysql_params
|
||||
name: '{{ item }}'
|
||||
state: absent
|
||||
loop:
|
||||
- '{{ role0 }}'
|
||||
- test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue