feat: configure cron for alpine

This commit is contained in:
Simon Cornet 2025-10-25 14:08:13 +02:00
commit 1a5ce09b16
3 changed files with 24 additions and 2 deletions

View file

@ -8,5 +8,18 @@
owner: "root"
group: "root"
mode: "0644"
when: 'type == "lxc"'
when:
- 'type == "lxc"'
- "ansible_os_family == 'Debian'"
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"

View file

@ -31,7 +31,6 @@
# cron jobs
- name: "cron jobs"
ansible.builtin.import_tasks: "cron.yaml"
when: "ansible_os_family == 'Debian'"
tags: "cron"
# swap