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
|
- name: Create Nextcloud volume directories
|
||||||
file:
|
file:
|
||||||
name: "{{ services.nextcloud.volume }}/{{ dir }}"
|
name: "{{ services.nextcloud.volume }}/{{ dir.name }}"
|
||||||
owner: root
|
owner: "{{ dir.owner | default('root') }}"
|
||||||
mode: u=rwx,g=rx,o=rx
|
mode: u=rwx,g=rx,o=rx
|
||||||
state: directory
|
state: directory
|
||||||
loop:
|
loop:
|
||||||
- apache2
|
- name: apache2
|
||||||
- data
|
- name: data
|
||||||
- db
|
- name: db
|
||||||
|
owner: '999'
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: dir
|
loop_var: dir
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
restic_backup:
|
backup:
|
||||||
image: "mazzolino/restic:{{ services.restic.version }}"
|
image: "mazzolino/restic:{{ services.restic.version }}"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
- "{{ services.nextcloud.volume }}:/mnt/volumes/nextcloud:ro"
|
- "{{ services.nextcloud.volume }}:/mnt/volumes/nextcloud:ro"
|
||||||
- "{{ services.emby.volume }}/programdata:/mnt/volumes/emby/programdata:ro"
|
- "{{ services.emby.volume }}/programdata:/mnt/volumes/emby/programdata:ro"
|
||||||
|
|
||||||
restic_prune:
|
prune:
|
||||||
image: "mazzolino/restic:{{ services.restic.version }}"
|
image: "mazzolino/restic:{{ services.restic.version }}"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
B2_ACCOUNT_KEY: "{{ secrets.restic.b2.key }}"
|
B2_ACCOUNT_KEY: "{{ secrets.restic.b2.key }}"
|
||||||
TZ: "{{ timezone }}"
|
TZ: "{{ timezone }}"
|
||||||
|
|
||||||
restic_check:
|
check:
|
||||||
image: "mazzolino/restic:{{ services.restic.version }}"
|
image: "mazzolino/restic:{{ services.restic.version }}"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
|
Reference in a new issue