Change directory owner and some service names
This commit is contained in:
parent
3639a4a51a
commit
de054a75a5
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Reference in a new issue