2022-06-09 08:38:07 +02:00
|
|
|
---
|
2023-02-07 19:31:08 +01:00
|
|
|
- name: "Backup | Set automysqlbackup postbackup script"
|
|
|
|
ansible.builtin.lineinfile:
|
2022-06-09 08:38:07 +02:00
|
|
|
path: /etc/default/automysqlbackup
|
|
|
|
regexp: '^#POSTBACKUP='
|
|
|
|
line: POSTBACKUP="{{ local_scripts_dir }}/automysqlbackup_post_script"
|
|
|
|
|
2023-02-07 19:31:08 +01:00
|
|
|
- name: "Backup | Dest automysqlbackup backupdir"
|
|
|
|
ansible.builtin.lineinfile:
|
2022-06-09 08:38:07 +02:00
|
|
|
path: /etc/default/automysqlbackup
|
|
|
|
regexp: '^BACKUPDIR='
|
|
|
|
line: 'BACKUPDIR="{{ automysqlbackup_backupdir|default("/var/lib/automysqlbackup") }}"'
|
|
|
|
|
|
|
|
- name: "backup | Prüfe scripts-Verzeichnis"
|
|
|
|
file:
|
|
|
|
path: "{{ local_scripts_dir }}"
|
|
|
|
state: touch
|
|
|
|
changed_when: false
|
|
|
|
|
2023-02-07 19:31:08 +01:00
|
|
|
- name: "Backup | Copy automysqlbackup postbackup script"
|
|
|
|
ansible.builtin.copy:
|
2022-06-09 08:38:07 +02:00
|
|
|
src: automysqlbackup_post_script
|
|
|
|
dest: "{{ local_scripts_dir }}/"
|
|
|
|
mode: 0755
|