ansible-nas/roles/healthchecks.io/tasks/main.yml
Anarion 4960286632
First portion of migration
freshrss, get_iplayer, gitlab, glances, gotify, guacamole, healthchecks.io
2023-03-08 21:47:39 +01:00

19 lines
521 B
YAML

---
- name: Start Healthchecks
block:
- name: Add healthchecks.io cronjob
ansible.builtin.cron:
name: healthchecks.io
minute: "*/{{ healthchecks_ping_minutes }}"
user: root
job: "curl -m 10 --retry 5 {{ healthchecks_url }}"
when: healthchecks_enabled is true
- name: Stop Healthchecks
block:
- name: Remove healthchecks.io cronjob
ansible.builtin.cron:
name: healthchecks.io
user: root
state: absent
when: healthchecks_enabled is false