fix storage box permissions for backup-sync user

This commit is contained in:
HgO
2020-11-29 15:56:59 +01:00
parent 7f3f811afb
commit 750241cd47
7 changed files with 16 additions and 105 deletions

View File

@@ -15,13 +15,14 @@
name: "{{ backup_owner }}"
groups: []
- name: Ensure backup directory is read-only for backup user
- name: Create backup directory
file:
path: "{{ backup_chroot_dir }}"
state: directory
owner: root
group: root
mode: "og=rx"
mode: "755"
when: not storage_box_enabled
- name: Include Storage Box backup tasks
import_tasks: backup_storage_box.yml

View File

@@ -85,7 +85,7 @@
path: /etc/auto.backup.{{ storage_box_prefix }}
regex: "^{{ storage_box_mount.path }} "
line: |
{{ storage_box_mount.path }} -fstype=fuse,{{ storage_box_mount.options | join(',') }},uid={{ storage_box_mount.owner }},gid={{ storage_box_mount.group }} :sshfs\#{{ storage_box_host }}\:{{ storage_box_path }}
{{ storage_box_mount.path }} -fstype=fuse,{{ storage_box_mount.options | join(',') }} :sshfs\#{{ storage_box_host }}\:{{ storage_box_path }}
state: present
create: yes
notify: reload autofs