Ensure cron tasks are run as the right user
Looks like by default they're installed as the current user, not root. Bad ansible documentation!
This commit is contained in:
parent
af22e89a73
commit
6716b418d7
4 changed files with 4 additions and 0 deletions
|
@ -27,3 +27,4 @@
|
||||||
name: Set media permissions
|
name: Set media permissions
|
||||||
special_time: daily
|
special_time: daily
|
||||||
job: chown -R {{ docker_user.name }}:{{ docker_user.name }} /mnt/media/*
|
job: chown -R {{ docker_user.name }}:{{ docker_user.name }} /mnt/media/*
|
||||||
|
become: true
|
||||||
|
|
|
@ -39,3 +39,4 @@
|
||||||
name: Set nextcloud data permissions
|
name: Set nextcloud data permissions
|
||||||
special_time: daily
|
special_time: daily
|
||||||
job: chown -R {{ docker_user.name }}:{{ docker_user.name }} /srv/nextcloud-data/data/*
|
job: chown -R {{ docker_user.name }}:{{ docker_user.name }} /srv/nextcloud-data/data/*
|
||||||
|
become: true
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
name: zfs scrub
|
name: zfs scrub
|
||||||
special_time: weekly
|
special_time: weekly
|
||||||
job: zpool scrub tank
|
job: zpool scrub tank
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: Sanoid
|
- name: Sanoid
|
||||||
include: sanoid.yml
|
include: sanoid.yml
|
||||||
|
|
|
@ -14,3 +14,4 @@
|
||||||
name: sanoid
|
name: sanoid
|
||||||
special_time: hourly
|
special_time: hourly
|
||||||
job: TZ=UTC sanoid --cron
|
job: TZ=UTC sanoid --cron
|
||||||
|
become: true
|
||||||
|
|
Loading…
Reference in a new issue