backup_base: Fix data directory path

This commit is contained in:
Timo Makinen 2025-02-02 15:19:38 +00:00
parent db91fe6345
commit d2fb048b7d

View file

@ -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: