Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от Fusengine★ 36 звёзд на GitHub

Об этом скилле

Covers configuration management with Ansible: picking versions, structuring a project, inventory and variables, playbooks, roles and collections, idempotent tasks, handlers and error handling, Vault, safe execution against real hosts (check mode, diff, limit, rolling batches), performance, testing (ansible-lint, Molecule) and execution environments. Does not cover Terraform/OpenTofu (devops-iac), host-level Linux administration (devops-linux), CI pipelines (devops-cicd) or external secret stores (devops-secrets); AWX/AAP is a pointer only.

DevOps Ansible

Agent Workflow (MANDATORY)

Before ANY playbook, role or inventory change, spawn in parallel, one Agent call each with a name:

  1. fuse-ai-pilot:explore-codebase - find ansible.cfg, inventories/, roles/, collections/requirements.yml, group_vars/, vault files
  2. fuse-ai-pilot:research-expert - verify module options for the installed collection versions at docs.ansible.com
  3. 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

  1. Version first - ansible --version and ansible-galaxy collection list before writing a task; module options differ per collection version; unknown option = ansible-doc <fqcn>
  2. 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)
  3. Production runs are proposed, not run - show playbook, inventory, --limit, tags, --become scope and expected changes, wait for the user's go (safe-run-protocol.md)
  4. Canary then rolling - one host, then serial: [1, 5, 10] with max_fail_percentage; never hosts: all plus strategy: free on a stateful tier
  5. Idempotent or it does not ship - second run reports changed=0; command/shell without changed_when is a defect (idempotency-handlers-errors.md)
  6. Never print or commit a secret - vault passwords out of the repo, no_log: true, names and keys only in reports (vault-secrets.md)
  7. 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
Полный SKILL.md на GitHub

Установить devops-ansible в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/ansible-vs-iac-awx.mdreferences/execution-environments.mdreferences/idempotency-handlers-errors.mdreferences/inventory-variables.mdreferences/performance-tuning.mdreferences/playbooks-roles-collections.mdreferences/safe-run-protocol.mdreferences/templates/ansible-lint.ymlreferences/templates/ansible-navigator.ymlreferences/templates/ansible.cfgreferences/templates/execution-environment.ymlreferences/templates/group_vars-all.ymlreferences/templates/inventory.ymlreferences/templates/molecule/converge.ymlreferences/templates/molecule/inventory/hosts.ymlreferences/templates/molecule/molecule.ymlreferences/templates/molecule/verify.ymlreferences/templates/requirements.ymlreferences/templates/role-skeleton/defaults/main.ymlreferences/templates/role-skeleton/handlers/main.ymlreferences/templates/role-skeleton/meta/main.ymlreferences/templates/role-skeleton/tasks/main.ymlreferences/templates/role-skeleton/templates/service.conf.j2references/templates/site-rolling-update.ymlreferences/testing-lint-molecule.mdreferences/vault-secrets.mdreferences/versions-support.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить devops-ansible с