summaryrefslogtreecommitdiff
path: root/tasks/clean_dbuser.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/clean_dbuser.yml')
-rw-r--r--tasks/clean_dbuser.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tasks/clean_dbuser.yml b/tasks/clean_dbuser.yml
new file mode 100644
index 0000000..8d7d0cd
--- /dev/null
+++ b/tasks/clean_dbuser.yml
@@ -0,0 +1,13 @@
+---
+- name: supprimer la base de données {{ db_user }}
+ community.mysql.mysql_db:
+ name: '{{ db_user }}'
+ state: absent
+ login_unix_socket: '{{mariadb.socket}}'
+
+- name: supprimer l'utilisateur {{ db_user }}
+ community.mysql.mysql_user:
+ name: '{{ db_user }}'
+ state: absent
+ login_unix_socket: '{{mariadb.socket}}'
+