ansible-error-handling

Implement Ansible block, rescue, and always for rollback and retry logic.

1|Updated Oct 12, 2025
One-click install
npx skills add https://github.com/basher83/Virgo-Core --skill ansible-error-handling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ansible-error-handling
Source: https://github.com/basher83/Virgo-Core/tree/main/.claude/plugins/ansible-workflows/skills/ansible-error-handling
Command: npx skills add https://github.com/basher83/Virgo-Core --skill ansible-error-handling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill equips you to build robust Ansible playbooks that gracefully handle failures, implement retry logic for transient issues, and provide clear, actionable error messages, ensuring your automation is reliable and predictable.

Core Features & Use Cases

  • Block/Rescue/Always: Implement comprehensive error recovery and cleanup routines, including automatic rollbacks for failed deployments.
  • Retry Logic: Master until/retries/delay to handle transient failures, ensuring tasks succeed even with temporary network or service issues.
  • Assert & Fail: Validate inputs and provide contextual error messages, guiding users to quickly resolve configuration problems.
  • Use Case: Deploy a critical application with Ansible. Use this skill to ensure that if the deployment fails at any stage, the system automatically rolls back to the previous working version and provides a clear report of what went wrong.

Quick Start

"Show me an example of using block, rescue, and always to deploy an application, including a rollback mechanism in case of failure."