/fuse-devops:devops-ansiblefrom fuse-devops
Covers configuration management with Ansible: picking versions, structuring a project, inventory and variables, playbooks, roles and collections, idempotent tasks, handlers and error handling, Jinja2 templates, Vault secrets, privilege escalation, check/diff mode, rolling updates, performance tuning, linting with ansible-lint, testing with…
Ships in fuse-devops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before ANY playbook, role or inventory change, spawn in parallel, one Agent call each with a name:
ansible.cfg, inventories/, roles/, collections/requirements.yml, group_vars/, vault files/websites/ansible_projects_ansible, /ansible/ansible-lint, /ansible/moleculeThen 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.
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.
| 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 |
ansible --version and ansible-galaxy collection list before writing a task; module options differ per collection version; unknown option = ansible-doc <fqcn>ansible-playbook --check --diff --limit <host>; check mode is a prediction, not a guarantee (modules without check support are skipped)--limit, tags, --become scope and expected changes, wait for the user's go (safe-run-protocol.md)serial: [1, 5, 10] with max_fail_percentage; never hosts: all plus strategy: free on a stateful tierchanged=0; command/shell without changed_when is a defect (idempotency-handlers-errors.md)no_log: true, names and keys only in reports (vault-secrets.md)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
| 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 | Static/dynamic inventory, precedence, groups |
| Playbooks, roles, collections | playbooks-roles-collections.md | Layout, FQCN, galaxy, requirements.yml, Jinja2 |
| Idempotency and errors | idempotency-handlers-errors.md | changed_when, handlers, block/rescue/always, tags |
| Safe execution | safe-run-protocol.md | ANY run against real hosts, become, reboot, state: absent |
| Vault and secrets | vault-secrets.md | Encrypting values, vault ids, no_log |
| Performance | performance-tuning.md | forks, pipelining, fact caching, strategies |
| Testing | testing-lint-molecule.md | ansible-lint profiles, Molecule, ansible-test |
| Execution environments | execution-environments.md | ansible-navigator, ansible-builder |
| Ansible vs IaC, AWX | ansible-vs-iac-awx.md | Tool choice, handoff to devops-iac |
| Template | When to Use |
|---|---|
| ansible.cfg | New project defaults: forks, pipelining, fact cache |
| inventory.yml | YAML inventory with groups, ranges and group vars |
| group_vars-all.yml | Variables with the vault_ indirection pattern |
| site-rolling-update.yml | Rolling update: serial, max_fail_percentage, block/rescue |
| requirements.yml | Pinned collections and roles |
| ansible-lint.yml | Lint config (copy to .ansible-lint) |
| role-skeleton/ | New role: tasks, handlers, defaults, meta, template |
| molecule/ | Ansible-native Molecule scenario |
| execution-environment.yml | ansible-builder v3 definition |
| ansible-navigator.yml | Navigator settings with an EE |
ansible --version; ansible-galaxy collection list # versions first
ansible-inventory -i inventories/staging --graph # what the inventory resolves to
ansible-doc ansible.builtin.template # option names for the installed version
ansible-lint # from the project root
ansible-playbook -i inventories/staging playbooks/site.yml --syntax-check
ansible-playbook -i inventories/staging playbooks/site.yml --check --diff --limit web01 # read-only prediction
ansible-playbook -i inventories/production playbooks/site.yml --limit web01 # after the user's go
version: ">=x,<y") and the ansible-core line in CI; install from requirements.ymlgroup_vars never leak across themno_log: true to tasks that handle credentials and diff: false where --diff would print themansible.builtin.assert for pre-flight guards (target group, free disk, version) inside pre_tasksansible-playbook against production from a prompt without --limit and the user's goignore_errors: true to hide a failing task; use failed_when or block/rescuestate: latest for packages in production plays-e extra vars for routine config: they beat every other variable sourcereferences/ansible-vs-iac-awx.md (opens in a new tab)references/execution-environments.md (opens in a new tab)references/idempotency-handlers-errors.md (opens in a new tab)references/inventory-variables.md (opens in a new tab)references/performance-tuning.md (opens in a new tab)references/playbooks-roles-collections.md (opens in a new tab)references/safe-run-protocol.md (opens in a new tab)references/templates/ansible-lint.yml (opens in a new tab)references/templates/ansible-navigator.yml (opens in a new tab)references/templates/ansible.cfg (opens in a new tab)references/templates/execution-environment.yml (opens in a new tab)references/templates/group_vars-all.yml (opens in a new tab)references/templates/inventory.yml (opens in a new tab)references/templates/molecule/converge.yml (opens in a new tab)references/templates/molecule/inventory/hosts.yml (opens in a new tab)references/templates/molecule/molecule.yml (opens in a new tab)references/templates/molecule/verify.yml (opens in a new tab)references/templates/requirements.yml (opens in a new tab)references/templates/role-skeleton/defaults/main.yml (opens in a new tab)references/templates/role-skeleton/handlers/main.yml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fusengine/claude-plugins --plugin fuse-devops18 skills in this plugin
/devops-cicdUse when writing, reviewing or debugging CI/CD pipelines for self-hosted infrastructure - GitHub Actions (workflows, reusable workflows, composite actions, matrix, concurrency, caching, environments with required reviewers, OIDC instead of stored secrets, pinning actions by SHA or lockfile, permissions least privilege, self-hosted runners), GitLab CI (rules, needs, includes and components, environments, resource_group, protected variables, runners and executors), pointers for Jenkins / Forgejo-Gitea Actions / Woodpecker, pipeline design (build once promote many, quality gates, speed), image builds in CI (BuildKit cache, multi-arch, provenance/SBOM/signing), deploy strategies and rollback, release automation and pipeline troubleshooting. Not for GitOps controllers, Helm or Kustomize (devops-gitops-packaging), Dockerfile and registry craft (devops-docker), secret stores (devops-secrets), language-specific CI gates (framework experts), repo commit/release flow (commit agent) or a supply-chain audit (fuse-security:security-expert)./devops-databasesUse when operating (not designing) databases - PostgreSQL installation and tuning (postgresql.conf, pg_hba.conf, roles), PgBouncer pooling, backups and point-in-time recovery (pg_dump, pg_basebackup, pgBackRest, restore tests), streaming and logical replication, Patroni high availability and failover/switchover, major version upgrades (pg_upgrade, logical route), vacuum/bloat/transaction ID wraparound, monitoring queries, lock-safe schema changes in production, PostgreSQL on Kubernetes with CloudNativePG; plus MySQL/MariaDB (GTID replication, backup tools), Redis/Valkey (RDB/AOF, Sentinel vs Cluster) and MongoDB pointers. Not for application schema or ORM modelling (framework experts), generic backup/storage strategy (devops-storage-backup), exporters and dashboards (devops-observability), secret stores (devops-secrets) or managed cloud databases.Other plugins' skills for the same job