Change script directory
This commit is contained in:
parent
39b9ffa525
commit
e5731608f7
1 changed files with 2 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/default/automysqlbackup
|
path: /etc/default/automysqlbackup
|
||||||
regexp: '^#POSTBACKUP='
|
regexp: '^#POSTBACKUP='
|
||||||
line: POSTBACKUP="{{ local_scripts_dir }}/automysqlbackup_post_script"
|
line: POSTBACKUP="/usr/local/bin/automysqlbackup_post_script"
|
||||||
|
|
||||||
- name: "Backup | Dest automysqlbackup backupdir"
|
- name: "Backup | Dest automysqlbackup backupdir"
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
|
@ -11,14 +11,8 @@
|
||||||
regexp: '^BACKUPDIR='
|
regexp: '^BACKUPDIR='
|
||||||
line: 'BACKUPDIR="{{ automysqlbackup_backupdir|default("/var/lib/automysqlbackup") }}"'
|
line: 'BACKUPDIR="{{ automysqlbackup_backupdir|default("/var/lib/automysqlbackup") }}"'
|
||||||
|
|
||||||
- name: "backup | Prüfe scripts-Verzeichnis"
|
|
||||||
file:
|
|
||||||
path: "{{ local_scripts_dir }}"
|
|
||||||
state: touch
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: "Backup | Copy automysqlbackup postbackup script"
|
- name: "Backup | Copy automysqlbackup postbackup script"
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: automysqlbackup_post_script
|
src: automysqlbackup_post_script
|
||||||
dest: "{{ local_scripts_dir }}/"
|
dest: /usr/local/bin/
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
Loading…
Reference in a new issue