common/tasks/cron.yaml
Simon Cornet 2272aa6a58
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
chore: migrate bare ansible_* facts to ansible_facts[] syntax
2026-05-19 09:19:03 +02:00

25 lines
616 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_facts['os_family'] == 'Debian'"
- "ansible_facts['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_facts["os_family"] == "Alpine"'
tags: "cron"