From 897325cfb1f5d07738594580c96c8c791a9537d4 Mon Sep 17 00:00:00 2001 From: William Date: Sat, 2 Jul 2022 16:32:55 +0200 Subject: [PATCH] =?UTF-8?q?Playbook=20de=20suppression=20d'une=20base=20de?= =?UTF-8?q?=20donn=C3=A9e.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playbooks/db-drop.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 playbooks/db-drop.yml diff --git a/playbooks/db-drop.yml b/playbooks/db-drop.yml new file mode 100644 index 0000000..ed35cb8 --- /dev/null +++ b/playbooks/db-drop.yml @@ -0,0 +1,15 @@ +--- +- name: Drop mysql database + hosts: all + become: yes + + tasks: + - name: Remove database container + community.docker.docker_container: + name: "{{ container_name }}" + state: absent + + - name: Remove database volume + community.docker.docker_volume: + name: "{{ container_name }}" + state: absent