2021-05-26 07:36:55 +02:00
|
|
|
---
|
|
|
|
- name: "mariadb: Richte automysqlbackup ein"
|
|
|
|
lineinfile:
|
|
|
|
path: /etc/default/automysqlbackup
|
|
|
|
regexp: '^#POSTBACKUP='
|
2021-07-28 11:06:27 +02:00
|
|
|
line: POSTBACKUP="{{ local_scripts_dir }}/automysqlbackup_post_script"
|
2021-05-26 07:36:55 +02:00
|
|
|
|
2021-05-28 11:52:32 +02:00
|
|
|
- name: "mariab: Prüfe scripts-Verzeichnis"
|
|
|
|
file:
|
2021-07-28 11:06:27 +02:00
|
|
|
path: "{{ local_scripts_dir }}"
|
2021-05-28 11:52:32 +02:00
|
|
|
state: touch
|
2021-07-28 02:24:52 +02:00
|
|
|
changed_when: false
|
2021-05-28 11:52:32 +02:00
|
|
|
|
2021-05-26 07:36:55 +02:00
|
|
|
- name: "mariadb: Erstelle scripts-Verzeichnis"
|
|
|
|
file:
|
2021-07-28 11:06:27 +02:00
|
|
|
path: "{{ local_scripts_dir }}"
|
2021-05-26 07:36:55 +02:00
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: "mariadb: Richte Backup ein 2"
|
|
|
|
copy:
|
|
|
|
src: automysqlbackup_post_script
|
2021-07-28 11:06:27 +02:00
|
|
|
dest: "{{ local_scripts_dir }}/automysqlbackup_post_script"
|
2021-05-26 07:36:55 +02:00
|
|
|
mode: 0755
|