Change directory owner and some service names

This commit is contained in:
Sam A. 2022-12-23 18:46:44 +01:00
parent 3639a4a51a
commit de054a75a5
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 9 additions and 8 deletions

View file

@ -2,14 +2,15 @@
---
- name: Create Nextcloud volume directories
file:
name: "{{ services.nextcloud.volume }}/{{ dir }}"
owner: root
name: "{{ services.nextcloud.volume }}/{{ dir.name }}"
owner: "{{ dir.owner | default('root') }}"
mode: u=rwx,g=rx,o=rx
state: directory
loop:
- apache2
- data
- db
- name: apache2
- name: data
- name: db
owner: '999'
loop_control:
loop_var: dir

View file

@ -8,7 +8,7 @@
version: '3.8'
services:
restic_backup:
backup:
image: "mazzolino/restic:{{ services.restic.version }}"
restart: unless-stopped
environment:
@ -34,7 +34,7 @@
- "{{ services.nextcloud.volume }}:/mnt/volumes/nextcloud:ro"
- "{{ services.emby.volume }}/programdata:/mnt/volumes/emby/programdata:ro"
restic_prune:
prune:
image: "mazzolino/restic:{{ services.restic.version }}"
restart: unless-stopped
environment:
@ -48,7 +48,7 @@
B2_ACCOUNT_KEY: "{{ secrets.restic.b2.key }}"
TZ: "{{ timezone }}"
restic_check:
check:
image: "mazzolino/restic:{{ services.restic.version }}"
restart: unless-stopped
environment: