mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-13 03:58:47 +00:00
4960286632
freshrss, get_iplayer, gitlab, glances, gotify, guacamole, healthchecks.io
19 lines
521 B
YAML
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
|