25 lines
664 B
YAML
25 lines
664 B
YAML
#- name: dump de la base de données
|
|
# community.mysql.mysql_db:
|
|
# state: dump
|
|
# src: db-sauv.sql.gz
|
|
# dest: "/root/db/sauv/db-sauv.sql.gz"
|
|
# check_implicit_admin: yes
|
|
# login_unix_socket: /var/run/mysqld/mysqld.sock
|
|
# login_user: "dev"
|
|
# login_password: "Azerty1+"
|
|
|
|
- name: Dump de la BDD sdis29
|
|
community.mysql.mysql_db:
|
|
state: dump
|
|
name: sdis29
|
|
target: /tmp/sdis-dump.sql
|
|
login_unix_socket: /var/run/mysqld/mysqld.sock
|
|
login_user: "dev"
|
|
login_password: "Azerty1+"
|
|
|
|
- name: importation sur la machine local
|
|
ansible.builtin.fetch:
|
|
src: /tmp/sdis-dump.sql
|
|
dest: /root/sauvegarde/
|
|
flat: yes
|