Automation · Event-Driven Automation
Rules
Cheat sheet · https://pcornel.dk/topic.php?topic=5336
Answer
Rules in event-driven automation map event conditions to actions, such as 'if disk alert on db servers, run cleanup playbook', as in Ansible EDA rulebooks or EventBridge rules.
Remember
- Rules map event conditions to actions.
- Keep rules specific.
- Test rules with sample events.
First checks
- Rule definitions in code — versioned
- Rule evaluation logs — decisions
- Rule tests — coverage
Verify in this order
event → rules → matched action
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5336