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 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

View file

@ -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

View file

@ -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

View file

@ -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