Run ansible-rulebook, ensuring that rulebook.yml
is in your current working directory.
$ podman run --rm -it -v ./:/data:z -e ANSIBLE_INVENTORY=localhost -p 5000:5000 quay.io/ansible/ansible-rulebook:latest ansible-rulebook --rulebook /data/rulebook.yml
POST some json that matches the condition:
curl -i -H 'Content-Type: application/json' -d "{\"message\": \"hello\"}" http://127.0.0.1:5000/