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:
Jake Howard 2020-08-17 22:29:02 +01:00
parent af22e89a73
commit 6716b418d7
Signed by: jake
GPG Key ID: 57AFB45680EDD477
4 changed files with 4 additions and 0 deletions

View File

@ -27,3 +27,4 @@
name: Set media permissions
special_time: daily
job: chown -R {{ docker_user.name }}:{{ docker_user.name }} /mnt/media/*
become: true

View File

@ -39,3 +39,4 @@
name: Set nextcloud data permissions
special_time: daily
job: chown -R {{ docker_user.name }}:{{ docker_user.name }} /srv/nextcloud-data/data/*
become: true

View File

@ -13,6 +13,7 @@
name: zfs scrub
special_time: weekly
job: zpool scrub tank
become: true
- name: Sanoid
include: sanoid.yml

View File

@ -14,3 +14,4 @@
name: sanoid
special_time: hourly
job: TZ=UTC sanoid --cron
become: true