ansible-role-mariadb/tasks/mariadb.yml
2021-07-28 11:06:27 +02:00

23 lines
613 B
YAML

---
- name: "mariadb: Richte automysqlbackup ein"
lineinfile:
path: /etc/default/automysqlbackup
regexp: '^#POSTBACKUP='
line: POSTBACKUP="{{ local_scripts_dir }}/automysqlbackup_post_script"
- name: "mariab: Prüfe scripts-Verzeichnis"
file:
path: "{{ local_scripts_dir }}"
state: touch
changed_when: false
- name: "mariadb: Erstelle scripts-Verzeichnis"
file:
path: "{{ local_scripts_dir }}"
state: directory
- name: "mariadb: Richte Backup ein 2"
copy:
src: automysqlbackup_post_script
dest: "{{ local_scripts_dir }}/automysqlbackup_post_script"
mode: 0755