netz39-infra-ansible/roles/dd24_dyndns_cron/tasks/main.yml

18 lines
450 B
YAML

---
- name: Make sure cron and curl are installed
apt:
name:
- cron
- curl
state: present
- name: Setup cron file for DD24 updates
ansible.builtin.template:
src: "templates/dd24-dyndns.cron.j2"
dest: "/etc/cron.d/dd24-dyndns"
owner: root
group: root
mode: "0644"
notify: reload cron
# There is ansible.builtin.cron, but this makes configuration much
# more complicated, so we stick to the template.