backup_base: Fix data directory path
This commit is contained in:
parent
db91fe6345
commit
d2fb048b7d
1 changed files with 3 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
|
||||
- name: Create backup directory
|
||||
ansible.builtin.file:
|
||||
path: /export/backup
|
||||
path: "{{ backup_datadir }}"
|
||||
state: directory
|
||||
mode: "0750"
|
||||
owner: root
|
||||
|
@ -25,11 +25,12 @@
|
|||
- name: Link backup directory
|
||||
ansible.builtin.file:
|
||||
dest: /srv/backup
|
||||
src: /export/backup
|
||||
src: "{{ backup_datadir }}"
|
||||
state: link
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
follow: false
|
||||
when: backup_datadir != "/srv/backup"
|
||||
|
||||
- name: Create authorized_keys
|
||||
ansible.builtin.copy:
|
||||
|
|
Loading…
Add table
Reference in a new issue