infrastructure/ansible/roles/zfs/tasks/sanoid.yml
Jake Howard 6716b418d7
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!
2020-08-17 22:29:02 +01:00

17 lines
305 B
YAML

- name: Install Sanoid
package:
name: sanoid
become: true
- name: Sanoid config
template:
src: files/sanoid.conf
dest: /etc/sanoid/sanoid.conf
become: true
- name: Install sanoid cron job
cron:
name: sanoid
special_time: hourly
job: TZ=UTC sanoid --cron
become: true