diff --git a/playbooks/shadowdark_up/main.yml b/playbooks/shadowdark_up/main.yml new file mode 100644 index 0000000..9df7903 --- /dev/null +++ b/playbooks/shadowdark_up/main.yml @@ -0,0 +1,6 @@ +--- +- name: Notify that shadowdark is up + hosts: shadowdark + tasks: + - ansible.builtin.debug: + msg: Shadowdark is Live diff --git a/rulebooks/url_monitoring.yml b/rulebooks/url_monitoring.yml new file mode 100644 index 0000000..35bc908 --- /dev/null +++ b/rulebooks/url_monitoring.yml @@ -0,0 +1,15 @@ +--- +- name: Listen for events on a webhook + hosts: web + sources: + - ansible.eda.url_check: + urls: + - http://shadowdark.seandersontech.com + delay: 60 + rules: + - name: Web site is up + condition: event.url_check.status == "up" + action: + - run_job_template: + name: "Shadowdark Up" + organization: Default