# apbddump.yml --- - hosts: all become: true tasks: - name: 1. Exécute le dump de la BDD. community.mysql.mysql_db: check_implicit_admin: true state: dump name: sdis29 target: /home/debian/db/sdis29-backup.sql.gz login_unix_socket: /run/mysqld/mysqld.sock - name: 2. Envoie le dump sur la machine Ansible. ansible.builtin.fetch: src: /home/debian/db/sdis29-backup.sql.gz dest: /home/debian/