20 lines
464 B
YAML
20 lines
464 B
YAML
---
|
|
- name: Listen for events on a webhook
|
|
hosts: all
|
|
sources:
|
|
- ansible.eda.url_check:
|
|
urls:
|
|
- http://shadowdark.seandersontech.com
|
|
delay: 10
|
|
rules:
|
|
- name: Web site is up
|
|
condition: event.url_check.status == "up"
|
|
action:
|
|
debug:
|
|
msg: Shadowdark is up
|
|
- name: Web site is down
|
|
condition: event.url_check.status == "down"
|
|
action:
|
|
debug:
|
|
msg: Shadowdark is down
|