From 4f6469cd98e7fd4ccb6c9f751a1276b1ba2f1308 Mon Sep 17 00:00:00 2001 From: Alhassane Kone Date: Thu, 7 Dec 2023 11:25:50 +0100 Subject: [PATCH] maj --- sio2/AP/apdbdump.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/sio2/AP/apdbdump.yml b/sio2/AP/apdbdump.yml index 361d016..ba1ae30 100644 --- a/sio2/AP/apdbdump.yml +++ b/sio2/AP/apdbdump.yml @@ -3,9 +3,18 @@ hosts: web become: yes tasks: - - name: 1. recuperation de sdis2023.sql avec fetch - ansible.builtin.fetch: - src: /tmp/sdis2023.sql - dest: /tmp/sdis2023.sql - flat: yes + + + - name: 1. Dump multiple databases + community.mysql.mysql_db: + state: dump + name: sdis2023 + target: /tmp/sdis2023.sql + login_unix_socket: /var/run/mysqld/mysqld.sock + + - name: 2. recuperation de sdis2023.sql avec fetch + ansible.builtin.fetch: + src: /tmp/sdis2023.sql + dest: sdis2023-dump.sql + flat: yes