diff options
Diffstat (limited to 'roles/mariadb/tasks/prune_users.yml')
-rw-r--r-- | roles/mariadb/tasks/prune_users.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/mariadb/tasks/prune_users.yml b/roles/mariadb/tasks/prune_users.yml new file mode 100644 index 0000000..b2d3da7 --- /dev/null +++ b/roles/mariadb/tasks/prune_users.yml @@ -0,0 +1,11 @@ +--- +- name: Prune users + community.mysql.mysql_user: + name: '{{ inner_item.User }}' + host: '{{ inner_item.Host }}' + state: absent + login_unix_socket: /var/run/mysqld/mysqld.sock + loop: '{{ item.1 }}' + loop_control: + loop_var: inner_item + become: yes |