devops-ansible
БесплатноБез исполняемых скриптовНе проверенUse when writing, reviewing, testing or running Ansible - choosing ansible-core and community package versions (control node and managed node Python), static…
от Fusengine★ 36 звёзд на GitHubОб этом скилле
DevOps Ansible
Agent Workflow (MANDATORY)
Before ANY playbook, role or inventory change, spawn in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - find
ansible.cfg,inventories/,roles/,collections/requirements.yml,group_vars/, vault files - fuse-ai-pilot:research-expert - verify module options for the installed collection versions at docs.ansible.com
- mcp__context7__query-docs -
/websites/ansible_projects_ansible,/ansible/ansible-lint,/ansible/molecule
Then read the environment read-only (ansible --version, ansible-galaxy collection list, ansible-inventory --graph, ansible-doc <fqcn>).
After changes, run fuse-ai-pilot:sniper; against real hosts follow safe-run-protocol.md.
Versions (checked 2026-11-10)
ansible-core 2.22.0 is the latest (PyPI; needs Python >= 3.13 on the control node). The community package ansible 14.6.0 pins ansible-core ~=2.21.6 and needs Python >= 3.12; package 15.0.0 (on 2.22) is unreleased. ansible-core keeps the latest release plus two older ones. Details, Python matrix and sources: versions-support.md.
Overview
| Area | Decision in one line |
|---|---|
| Install | ansible package for batteries included; ansible-core + pinned requirements.yml for reproducible control nodes; EE container for CI |
| Inventory | YAML files per environment, group_vars/ and host_vars/ next to them; dynamic inventory through plugins, not scripts |
| Content | FQCN everywhere; roles for reusable units; collections pinned by version range in requirements.yml |
| Tasks | Native modules first; command/shell only with changed_when/failed_when; state: present over latest |
| Run | --check --diff --limit first, then canary host, then serial batches with max_fail_percentage |
| Secrets | Vault with --vault-id labels or an external store; no_log: true on tasks handling secrets; diff: false on secret files |
| Quality | ansible-lint profile production, Molecule with an idempotence step |
Critical Rules
- Version first -
ansible --versionandansible-galaxy collection listbefore writing a task; module options differ per collection version; unknown option =ansible-doc <fqcn> - Check, diff, limit before any real run -
ansible-playbook --check --diff --limit <host>; check mode is a prediction, not a guarantee (modules without check support are skipped) - Production runs are proposed, not run - show playbook, inventory,
--limit, tags,--becomescope and expected changes, wait for the user's go (safe-run-protocol.md) - Canary then rolling - one host, then
serial: [1, 5, 10]withmax_fail_percentage; neverhosts: allplusstrategy: freeon a stateful tier - Idempotent or it does not ship - second run reports
changed=0;command/shellwithoutchanged_whenis a defect (idempotency-handlers-errors.md) - Never print or commit a secret - vault passwords out of the repo,
no_log: true, names and keys only in reports (vault-secrets.md) - Never invent a module, option or collection - cite the docs.ansible.com or collection page; unknown = "not verified"
Architecture
infra-ansible/
├── ansible.cfg # inventory path, roles_path, collections_path, forks, pipelining
├── collections/requirements.yml # pinned collections (and roles)
├── inventories/
│ ├── production/{hosts.yml,group_vars/,host_vars/}
│ └── staging/{hosts.yml,group_vars/,host_vars/}
├── playbooks/site.yml # imports per-tier playbooks
├── roles/<role>/{tasks,handlers,defaults,vars,templates,files,meta}/
├── molecule/default/ # per-role or per-collection scenarios
├── .ansible-lint # profile and skip/warn lists
└── execution-environment.yml # only when running in an EE
Reference Guide
Concepts
| Topic | Reference | When to Consult |
|---|---|---|
| Versions and support | versions-support.md | Choosing core/package, Python on control and managed nodes |
| Inventory and variables | [inventory-variables.md](references/inventor |
Установить devops-ansible в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл devops-ansible?
Use when writing, reviewing, testing or running Ansible - choosing ansible-core and community package versions (control node and managed node Python), static and dynamic inventory with group_vars/host_vars, variable precedence, playbooks, roles and collections (ansible-galaxy, requirements.yml, FQCN), idempotency (changed_when/failed_when), handlers, tags, Jinja2 templates, Ansible Vault and no_log, privilege escalation, check mode and diff mode, --limit, serial/rolling updates and max_fail_percentage, block/rescue/always, performance (forks, pipelining, fact caching, strategy), ansible-lint, Molecule, execution environments (ansible-navigator, ansible-builder), project layout, and Ansible versus Terraform/OpenTofu. Not for Terraform/OpenTofu state and modules (devops-iac), Linux host internals (devops-linux), CI pipeline authoring (devops-cicd), secret stores (devops-secrets), Proxmox or OpenStack platform internals (devops-proxmox, devops-openstack) or a security hardening audit (fuse-security:security-expert).
Как установить скилл devops-ansible?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл devops-ansible запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic