From 9e35ca41c620e74796f96c5e3152b100c1aa6509 Mon Sep 17 00:00:00 2001 From: Alhassane Kone Date: Thu, 30 Nov 2023 08:42:38 +0100 Subject: [PATCH] maj --- sio2/AP/apdb.yml | 2 +- sio2/AP/drop.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 sio2/AP/drop.yml diff --git a/sio2/AP/apdb.yml b/sio2/AP/apdb.yml index de0896a..d754d78 100644 --- a/sio2/AP/apdb.yml +++ b/sio2/AP/apdb.yml @@ -32,7 +32,7 @@ - name: 5. copier la base de donnée sur l'hôte distant copy: - src: /tmp/sdis2023.sql + src: sdis2023.sql dest: /tmp/sdis2023.sql - name: 6. Restore la base de donnée diff --git a/sio2/AP/drop.yml b/sio2/AP/drop.yml new file mode 100644 index 0000000..1b1536e --- /dev/null +++ b/sio2/AP/drop.yml @@ -0,0 +1,12 @@ +--- +- name: apdb + hosts: web + become: yes + tasks: + - name: 1. Suppression de la base de donnee 'sdis2023' + community.mysql.mysql_db: + name: sdis2023 + state: absent + login_unix_socket: /var/run/mysqld/mysqld.sock + +