sdis29-2/ansible/apdbdump.yml
Your Name 05f9b94c3c modified: apdb.yml
modified:   apdbdump.yml
	new file:   sdis29-dump.sql
2024-11-08 11:55:27 +01:00

18 lines
355 B
YAML

---
- hosts: all
become: true
tasks:
- name: Dump database
community.mysql.mysql_db:
state: dump
name: sdis29
target: /tmp/sdis29-dump.sql
login_unix_socket: /run/mysqld/mysqld.sock
- name: Copy database dump file
ansible.builtin.fetch:
src: /tmp/sdis29-dump.sql
dest: sdis29-dump.sql
flat: yes