Home_Lab_Automation/rulebooks/url_monitoring.yml
2026-02-09 22:00:15 -06:00

16 lines
352 B
YAML

---
- name: Listen for events on a webhook
hosts: shadowdark
sources:
- ansible.eda.url_check:
urls:
- http://localhost
delay: 60
rules:
- name: Web site is up
condition: event.url_check.status == "up"
action:
run_job_template:
name: "Shadowdark Up"
organization: Default