sigridjineth/hello-ansible-skills/ansible-playbook
Claude Code and agent skill by sigridjineth/hello-ansible-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when creating playbooks, roles, or inventory files. Use when automating infrastructure with Ansible. Use when encountering YAML syntax errors, module failures, or variable precedence issues.
Install
npx vskill@latest install sigridjineth/hello-ansible-skills/ansible-playbookSKILL.md
Ansible Playbook Development
Overview
Ansible playbooks declare desired system state rather than imperative commands. The core principle is idempotency: running a playbook multiple times produces the same result without unintended changes.
When to Use
- Creating new playbooks or roles
- Writing inventory files
- Debugging YAML syntax errors
- Troubleshooting module parameter issues
- Understanding variable precedence
- Converting shell scripts to Ansible
Quick Reference
Project Structure
Essential ansible.cfg
Module Patterns
| Operation | Module | Key Parameters | |
|---|---|---|---|
| Create directory | ansible.builtin.file | state: directory, mode, owner | |
| Copy file | ansible.builtin.copy | src, dest, mode | |
| Template | ansible.builtin.template | src, dest, variables in .j2 | |
| Install package | ansible.builtin.package | name, state: present | |
| Manage service | ansible.builtin.service | name, state, enabled | |
| Run command | ansible.builtin.command | cmd, register result, set changed_when |
Variable Precedence (lowest to highest)
- Role defaults (
defaults/main.yml) - Inventory group_vars
- Inventory host_vars
- Playbook vars
- Role vars (
vars/main.yml) - Task vars
- Extra vars (
-e)
Handlers
Error Handling
Common Mistakes
| Mistake | Fix | |
|---|---|---|
| Using short module names | Always use FQCN: ansible.builtin.copy not copy | |
| Hardcoded values | Extract to variables in defaults/main.yml | |
Missing changed_when on commands | Add changed_when: "'created' in result.stdout" | |
| Forgetting handler flush | Use meta: flush_handlers when needed before dependent tasks | |
| YAML indentation errors | Use 2 spaces, never tabs | |
| Colon in unquoted string | Quote values containing : |
Verification Commands
Security
- Security scanPassed, 90 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-playbook/SKILL.md
Popularity
- Repository stars
- 57
- Repository forks
- 10
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 2 May 2026, 6 months ago.
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/sigridjineth/hello-ansible-skills/ansible-playbook)