Ansible Error Handling
Implements robust error recovery, retry logic, and validation patterns for resilient Ansible playbooks and roles.
This skill provides a comprehensive framework for building self-healing and resilient automation within Ansible. It equips Claude with standardized patterns for using block/rescue/always structures to manage cleanups and rollbacks, implementing retry logic for transient network or service failures, and utilizing assertion modules for rigorous input validation. By applying these practices, developers can minimize manual intervention and ensure that infrastructure-as-code deployments provide clear, actionable error context when things go wrong.
주요 기능
01Transient failure management using until/retries logic
02Assertion-based validation for environment and variable requirements
03Conditional 'failed_when' logic for handling expected failures gracefully
04Block/Rescue/Always execution flow for error cleanup and rollbacks
05Custom failure messages for context-rich troubleshooting
065 GitHub stars
사용 사례
01Pre-flight validation of infrastructure state and configuration variables
02Implementing robust health checks and stabilization waits for cloud services
03Automating complex application deployments with automatic rollbacks