Pass the user list to user creation instead of the db list
Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
+3
-3
@@ -192,8 +192,8 @@
|
||||
label: '{{ item.name }} will be {{ item.state }}'
|
||||
- name: 'ensure mariadb users'
|
||||
when:
|
||||
- mariadb_db_list is defined
|
||||
- mariadb_db_list is iterable
|
||||
- mariadb_user_list is defined
|
||||
- mariadb_user_list is iterable
|
||||
community.mysql.mysql_user:
|
||||
append_privs: '{{ item.append_privs | default(omit) }}'
|
||||
attributes: '{{ item.attributes | default(omit) }}'
|
||||
@@ -231,7 +231,7 @@
|
||||
subtract_privs: '{{ item.subtract_privs | default(omit) }}'
|
||||
tls_requires: '{{ item.tls_requires | default(omit) }}'
|
||||
update_password: '{{ item.update_password | default(omit) }}'
|
||||
loop: '{{ mariadb_db_list }}'
|
||||
loop: '{{ mariadb_user_list }}'
|
||||
loop_control:
|
||||
label: '{{ item.name }} will be {{ item.state }}'
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user