fix storage box permissions for backup-sync user
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user