2021-12-15 09:56:20 +01:00

16 lines
374 B
YAML

- name: exportation de la base de données
mysql_db:
name: sdis29
state: dump
target: /tmp/sdis29-dump.sql
login_user: dev
login_password: Azerty1+
login_unix_socket: /var/run/mysqld/mysqld.sock
- name: importation du dump de la base de donnée
ansible.builtin.fetch:
src: /tmp/sdis29-dump.sql
dest: /root/sauvegarde/sql/
flat: yes