diff --git a/rulebooks/url_monitoring.yml b/rulebooks/url_monitoring.yml index 35e9f05..5879b85 100644 --- a/rulebooks/url_monitoring.yml +++ b/rulebooks/url_monitoring.yml @@ -24,5 +24,4 @@ organization: Default job_args: extra_vars: - availability: down - + availability: down diff --git a/rulebooks/url_monitoring_clean.yml b/rulebooks/url_monitoring_clean.yml new file mode 100644 index 0000000..56e8c3e --- /dev/null +++ b/rulebooks/url_monitoring_clean.yml @@ -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