homeserver/roles/mgrote_zfs_health/tasks/main.yml
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02:00

23 lines
584 B
YAML

---
- name: include user tasks
ansible.builtin.include_tasks: user.yml
- name: template script
become: true
ansible.builtin.template:
src: zfs-health.sh
dest: /usr/local/bin/zfs-health.sh
mode: "0744"
owner: "{{ zfs_health_user }}"
group: "{{ zfs_health_user_group }}"
- name: ensure cronjob exists
become: true
ansible.builtin.cron:
name: zfs_health
state: present
job: "/usr/local/bin/zfs-health.sh"
minute: "{{ zfs_extra_cron_minutes_zfs_health }}"
hour: "{{ zfs_extra_cron_hours_zfs_health }}"
user: "{{ zfs_health_user }}"