Add variables to configure automysqlbackup
Translate Readme
This commit is contained in:
parent
b229f5811f
commit
64dcfb2fbd
4 changed files with 50 additions and 24 deletions
|
@ -1,18 +1,12 @@
|
|||
---
|
||||
- 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="{{ mariadb.local_backupdir | default("/var/lib/automysqlbackup") }}"'
|
||||
- name: "Backup | Copy automysqlbackup configuration"
|
||||
ansible.builtin.template:
|
||||
src: automysqlbackup
|
||||
dest: /etc/default/automysqlbackup
|
||||
mode: 0644
|
||||
|
||||
- name: "Backup | Copy automysqlbackup postbackup script"
|
||||
ansible.builtin.copy:
|
||||
src: automysqlbackup_post_script
|
||||
dest: /usr/local/bin/
|
||||
dest: "{{ automysqlbackup_postbackup }}"
|
||||
mode: 0755
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue