ilude/claude-code-config/ansible-workflow
Claude Code and agent skill by ilude/claude-code-config
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Ansible automation workflow guidelines. Activate when working with Ansible playbooks, ansible-playbook, inventory files (.yml, .ini), or Ansible-specific patterns.
Install
npx vskill@latest install ilude/claude-code-config/ansible-workflowSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Ansible Workflow
Tool Grid
| Task | Tool | Command | |
|---|---|---|---|
| Lint | ansible-lint | ansible-lint | |
| YAML lint | yamllint | yamllint . | |
| Syntax check | ansible | ansible-playbook --syntax-check | |
| Dry run | ansible | ansible-playbook --check | |
| Run | ansible | ansible-playbook playbook.yml | |
| Test roles | molecule | molecule test | |
| Encrypt | sops | sops -e secrets.yml | |
| Decrypt | sops | sops -d secrets.yml |
Runtime Requirements
- Ansible Core 2.18+ with Python 3.12+
- ansible-lint and yamllint installed
- SOPS for secrets management (RECOMMENDED over ansible-vault for GitOps)
- Molecule + docker driver for role testing
Code Standards
FQCN Requirement
All module names MUST use Fully Qualified Collection Names (FQCN):
Linting
All playbooks and roles MUST pass linting before commit:
Configuration templates available in assets/:
.ansible-lint.template- Production profile with strict mode.yamllint.template- YAML linting with 120 char lines
Sensitive Data
Tasks handling sensitive data MUST use no_log: true:
Secrets Management
SOPS (RECOMMENDED for GitOps)
SOPS is RECOMMENDED over ansible-vault for GitOps workflows:
ansible-vault (Legacy)
When ansible-vault is required:
Project Structure
Environment-Based Inventory
group_vars Organization
Organize group_vars by role name for clarity:
Role Structure
Roles SHOULD be single-purpose:
Dynamic Inventories
AWS EC2
Azure RM
GCP Compute
Handler Patterns
Proper Handler Usage
Handler Execution Order
Handlers execute in definition order, not notification order. Define handlers in logical sequence (validate -> reload -> restart).
Variable Precedence
Ansible variable precedence (highest to lowest):
- Extra vars (
-e "var=value") - Task vars (in task definition)
- Block vars
- Role and include vars
- Set facts / registered vars
- Play vars_files
- Play vars
- Host facts
- Playbook host_vars
- Inventory host_vars
- Playbook group_vars
- Inventory group_vars
- Role defaults
Best Practices
Molecule Testing
Role Testing Setup
Running Tests
Performance Optimization
ansible.cfg Settings
Use the template at assets/ansible.cfg.template:
forks = 20- Parallel executionpipelining = True- Reduce SSH operationsgathering = smart- Cache factsfact_caching = jsonfile- Persist facts
Task Optimization
Pre-Commit Checklist
Before committing Ansible code:
- [ ]
ansible-lintpasses with no warnings - [ ]
yamllint .passes - [ ]
ansible-playbook --syntax-checkpasses - [ ] All modules use FQCN
- [ ] Sensitive tasks have
no_log: true - [ ] Secrets encrypted with SOPS (or vault)
- [ ] Molecule tests pass for modified roles
- [ ] Variables documented in role README
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ansible-workflow/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 7 Apr 2026, 7 months ago.
Extension points
hookPre/post lifecycle hooksconfigConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ilude/claude-code-config/ansible-workflow)