--- - hosts: all become: yes tasks: - name: export de la database sdis29 community.mysql.mysql_db: state: dump name: sdis29 target: /tmp/sdis29-dump.sql login_unix_socket: /run/mysqld/mysqld.sock - name: recuperation du fichier de dump sur la machine locale fetch: src: /tmp/sdis29-dump.sql dest: sdis29-dump.sql flat: yes