This video will cover testing of Event-Driven Ansible and Ansible-Rulebook via local command-line testing
The presenter is Alex Dworjan
Github: https://github.com/shadowman-lab
Ansible Rulebook Documentation: https://ansible.readthedocs.io/projects/rulebook/en/stable/introduction.html
Ansible Rulebook Blog: https://www.redhat.com/en/topics/automation/what-is-an-ansible-rulebook
Podman command Example: podman run -it --rm -v ./local/eda/:/tmp/rulebook:z -p 2000:2000 towerpah.shadowman.dev/shadowmande:20240611T100240 ansible-rulebook --rulebook /tmp/rulebook/webhook.yml -i /tmp/rulebook/inventory.yml -vv
NOTE: To exit the Decision Environment and stop the running container, press Control-C
Curl command Example: curl -H 'Content-Type: application/json' -d "{\"message\": \"EDA is running\"}" localhost:2000
Download
0 formats
No download links available.
Event-Driven Ansible Command Line Testing | NatokHD