Creating new eda workflow for demos
This commit is contained in:
parent
b46fa2d455
commit
b2df07a9b3
6
playbooks/shadowdark_up/main.yml
Normal file
6
playbooks/shadowdark_up/main.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: Notify that shadowdark is up
|
||||
hosts: shadowdark
|
||||
tasks:
|
||||
- ansible.builtin.debug:
|
||||
msg: Shadowdark is Live
|
||||
15
rulebooks/url_monitoring.yml
Normal file
15
rulebooks/url_monitoring.yml
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user