randoneering/nix-flake-mirror/ansible
Claude Code and agent skill by randoneering/nix-flake-mirror
- 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, playbooks, and configuration management. Activate when working with Ansible YAML files or discussing Ansible patterns.
Install
npx vskill@latest install randoneering/nix-flake-mirror/ansibleSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as randoneering/nix-flake-mirror/ansible.
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:
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
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, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent/skills/ansible/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/randoneering/nix-flake-mirror/ansible)