- name: creer une sauvegarde mysql_db: name: sdis29 state: dump target: /tmp/sdis29.sql login_host: localhost login_user: slam login_password: Azerty1+ login_unix_user: /var/run/mysqld/mysqld.sock - name: Copie de la sauv distante ansible.builtin.fetch: src: /tmp/sdis29.sql dest: /root/sauvegarde/sql/ flat: yes