Added cleaner version to run in aap
This commit is contained in:
parent
a4aa9f083c
commit
a3ab7e5277
@ -25,4 +25,3 @@
|
|||||||
job_args:
|
job_args:
|
||||||
extra_vars:
|
extra_vars:
|
||||||
availability: down
|
availability: down
|
||||||
|
|
||||||
|
|||||||
19
rulebooks/url_monitoring_clean.yml
Normal file
19
rulebooks/url_monitoring_clean.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
- 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
|
||||||
Loading…
x
Reference in New Issue
Block a user