2021-12-15 08:17:50 +01:00

18 lines
336 B
YAML

- name: Création d'un dump
mysql_db:
state: dump
name: sdis29
target: /tmp/sdis29.sql
login_user: slam
login_password: Azerty1+
login_unix_socket: /var/run/mysqld/mysqld.sock
- name: Copie du dump distant
ansible.builtin.fetch:
src: /tmp/sdis29.sql
dest: /root/sauvegarde/sql/
flat: yes