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
|
- name: Create backup directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /export/backup
|
path: "{{ backup_datadir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0750"
|
mode: "0750"
|
||||||
owner: root
|
owner: root
|
||||||
|
@ -25,11 +25,12 @@
|
||||||
- name: Link backup directory
|
- name: Link backup directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
dest: /srv/backup
|
dest: /srv/backup
|
||||||
src: /export/backup
|
src: "{{ backup_datadir }}"
|
||||||
state: link
|
state: link
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
follow: false
|
follow: false
|
||||||
|
when: backup_datadir != "/srv/backup"
|
||||||
|
|
||||||
- name: Create authorized_keys
|
- name: Create authorized_keys
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
|
Loading…
Add table
Reference in a new issue