Event-Driven Ansible Demos
- Webhook with Curl
- URL watch
- EDA with GitOps
- Eda controller or
ansible-rulebook
running
- EDA Git project - with calalog structure (rulebook folder)
---
- name: Webhook with curl
hosts: all
sources:
- ansible.eda.webhook:
host: 0.0.0.0
port: 5000
rules:
- name: Test action
condition: event.payload.message == "test"
action:
debug:
curl -H 'Content-Type: application/json' -d "{\"message\": \"test\"}" 10.28.20.18:5000/endpoint
- 10.28.20.18 - EDA controller IP
- port 5000 - webhook plugin listening port
GitLab Webhook definition
http://10.28.20.18:5000/endpoint
Trigger: Push