common/tasks/cron.yaml

25 lines
589 B
YAML

---
# configure cron
- name: "cron - config - zfs kstat"
ansible.builtin.template:
src: "templates/cron/mount_zfs_kstat.j2"
dest: "/etc/cron.d/mount_zfs_kstat"
owner: "root"
group: "root"
mode: "0644"
when:
- "ansible_os_family == 'Debian'"
- "ansible_virtualization_type == 'lxc'"
tags: "cron"
# configure cron
- name: "cron - config - alpine"
ansible.builtin.template:
src: "templates/cron/alpine-root.j2"
dest: "/etc/crontabs/root"
owner: "root"
group: "root"
mode: "0600"
when: 'ansible_os_family == "Alpine"'
tags: "cron"