ansible-role-mariadb/tasks/backup.yml
2023-02-07 19:32:38 +01:00

18 lines
625 B
YAML

---
- name: "Backup | Set automysqlbackup postbackup script"
ansible.builtin.lineinfile:
path: /etc/default/automysqlbackup
regexp: '^#POSTBACKUP='
line: POSTBACKUP="/usr/local/bin/automysqlbackup_post_script"
- name: "Backup | Dest automysqlbackup backupdir"
ansible.builtin.lineinfile:
path: /etc/default/automysqlbackup
regexp: '^BACKUPDIR='
line: 'BACKUPDIR="{{ automysqlbackup_backupdir | default("/var/lib/automysqlbackup") }}"'
- name: "Backup | Copy automysqlbackup postbackup script"
ansible.builtin.copy:
src: automysqlbackup_post_script
dest: /usr/local/bin/
mode: 0755