ansible-role-mariadb/tasks/mariadb.yml

24 lines
593 B
YAML
Raw Normal View History

2021-05-26 07:36:55 +02:00
---
- name: "mariadb: Richte automysqlbackup ein"
lineinfile:
path: /etc/default/automysqlbackup
regexp: '^#POSTBACKUP='
line: POSTBACKUP="{{ scripts_path }}/automysqlbackup_post_script"
2021-05-28 11:52:32 +02:00
- name: "mariab: Prüfe scripts-Verzeichnis"
file:
path: "{{ scripts_path }}"
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:
path: "{{ scripts_path }}"
state: directory
- name: "mariadb: Richte Backup ein 2"
copy:
src: automysqlbackup_post_script
dest: "{{ scripts_path }}/automysqlbackup_post_script"
mode: 0755