netz39-infra-ansible/roles/dd24_dyndns_cron/tasks/main.yml
Alexander Dahl 8b2ab7753d 🚨 Fix linter warnings of type 'name[casing]'
ansible-lint reads like this:

    name[casing]: All names should start with an uppercase letter.

While at it: Some task/handler names were slightly adapted to better
match what should be done.
2025-03-01 21:21:22 +01:00

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.