Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Ansible

$ ansible Official High Risk
Red Hat · Cloud & Infra · GPL-3.0-or-later · macos / linux

Ansible (ansible, alongside ansible-playbook and ansible-inventory) automates server configuration and orchestration over SSH without target agents, supporting --check --diff dry-run previews, ANSIBLE_STDOUT_CALLBACK=json, and JSON inventory dumps (ansible-inventory --list).

FCRS-1.0 Score
82 /100
Good
Medium Confidence
Zero-Friction Install
brew install ansible
CLI vs MCP Decision CLI Preferred vs MCP

ansible executes local YAML playbooks and inventories over SSH directly from the project repository.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

ansible-inventory --list emits JSON, ANSIBLE_STDOUT_CALLBACK=json produces structured playbook output, and --check --diff provides dry-run.

  • Supports --check --diff, ANSIBLE_STDOUT_CALLBACK=json, and ansible-inventory --list
Trust & Safety 19 / 25

--check --diff and --limit are strong safeguards, though raw command/shell tasks skip check mode unless check_mode: false is avoided.

  • Supports --check, --diff, and --limit; raw shell tasks vary
Setup & Portability 12 / 15

Easy brew install ansible or pip install ansible-core on macOS/Linux; Windows control nodes require WSL.

  • macOS/Linux native via Homebrew and PyPI; Windows via WSL
Utility & Efficiency 13 / 15

Idempotent agentless fleet configuration across thousands of modules.

  • Mature agentless SSH automation ecosystem
Maintenance & Lineage 9 / 10

Official ansible/ansible maintained by Red Hat under GPL-3.0-or-later.

  • Official ansible/ansible repository
Docs & Verifiability 9 / 10

Exhaustive docs.ansible.com module/CLI reference and ansible-doc offline lookup.

  • Offline ansible-doc and online reference

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Uses SSH keys from ~/.ssh/ / ssh-agent and optional Ansible Vault password files (--vault-password-file or ANSIBLE_VAULT_PASSWORD_FILE).

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

100% open-source (GPL-3.0-or-later); targets your existing SSH-accessible hosts.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Ansible Agent Rules
- ALWAYS run `ansible-playbook --syntax-check` and `--check --diff` before real execution.
- Set `ANSIBLE_NOCOLOR=1` and `ANSIBLE_HOST_KEY_CHECKING=True`; pass `--limit <host>` when testing.
- Never run destructive ad-hoc `shell`/`command` modules across `all` hosts without human approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Dump resolved host inventory as JSON
ansible-inventory -i inventory.ini --list

Emits the complete resolved host groups and variables as JSON without connecting to hosts.

Preview playbook changes with --check --diff
ANSIBLE_NOCOLOR=1 ansible-playbook -i inventory.ini site.yml --check --diff

Simulates playbook tasks and diffs template/file changes without mutating target hosts.

Controlled Writes & Previews

Run a playbook against a single scoped host with JSON output
ANSIBLE_STDOUT_CALLBACK=json ANSIBLE_NOCOLOR=1 ansible-playbook -i inventory.ini site.yml --limit web01

Restricts execution to --limit web01 and captures structured JSON task results.

Strengths for Agents

  • + --check --diff previews idempotent config changes safely before applying.
  • + ANSIBLE_STDOUT_CALLBACK=json and ansible-inventory --list provide clean JSON.
  • + ansible-doc gives offline schema docs for every installed module.

Caveats & Pitfalls

  • ! Control node is not supported natively on Windows (requires WSL).
  • ! Playbooks using raw shell or command tasks cannot reliably simulate changes in --check mode.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI