Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Ansible Idempotency Guard

    1

    19 checks, check-mode diff and a second run that must show changed=0.

    $15

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Ansible Idempotency Guard

    Ansible Idempotency Guard

    Example session with this skill installed

    Request: "Review site.yml before I run it against all our web servers. It reports 'changed' every time."

    • Read your context and instructions
    • Compiled the ansible idempotency guard

    The agent lints the playbook statically, before any host is touched:

    $ scripts/idempotency_lint.py site.yml
    ERROR plaintext-secret <play> Key 'db_password' holds a literal value; use Ansible Vault or a lookup.
    ERROR command-not-idempotent install shell without creates/removes/changed_when reports 'changed' on every run.
    ERROR destructive-unguarded wipe Destructive command without a 'when' guard: rm -rf /var/lib/app
    ERROR ignore-errors ign ignore_errors hides real failures; use failed_when or block/rescue.
    WARNING package-latest pkg state: latest is not deterministic; pin a version or use state: present.
    WARNING download-no-checksum dl get_url without checksum: downloads are not verified and may re-run.
    WARNING missing-no-log vault Task passes password without no_log: true.
    INFO hosts-all <play> Play targets all hosts without 'serial'; consider a canary batch.
    Summary: 6 error(s), 5 warning(s), 7 info

    Result: the agent replaces the shell install with ansible.builtin.package, guards the rm -rf behind an explicit condition, moves the password to Vault, adds checksums and no_log, and sets serial: 1 for a canary. It then runs prove_idempotency.sh: a --check --diff dry run, an apply only after you type the --limit back, and a second run that must report changed=0, or the skill reports which task is still not idempotent.

    site.yml

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Provably idempotent Ansible: 19 static checks (unguarded shell, secrets, state: latest, destructive commands), check-mode diff, and a second run that must report changed=0.

    Why this instead of a free prompt

    Free skills ask the model to "be careful". These ship executable gates: a migration that would lock a busy table fails the linter; an alert that references a metric your Prometheus does not have fails verification; a Compose rollout that turns unhealthy rolls itself back. Every script was run against real PostgreSQL 16, Docker 29, ansible-core and Prometheus with node_exporter and postgres_exporter before release.

    How it keeps you safe

    • Read-only pre-flight first: diagnostics that change nothing.
    • Dry-run by default. Anything that changes state needs an explicit apply step and a typed confirmation.
    • Rollback built in, and guardrails that refuse unsafe input.
    • No secrets printed in output.

    Requirements

    Python 3.8+, ansible-core (PyYAML comes with it). Runs on RHEL/AlmaLinux 8+ and Debian 11+/Ubuntu 20.04+.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.

    Not for: Terraform, Salt, Chef, Puppet or plain shell scripts. Requires Python 3.8+ and ansible-core on Linux (RHEL/AlmaLinux 8+, Debian 11+/Ubuntu 20.04+).

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Software
    Python 3.8+ansible-core

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    Terraform, Salt, Chef, Puppet or plain shell scripts.

    Any agent that loads `SKILL.md` folders: Claude Code (`~/.claude/skills`), Codex, Cursor and compatible tools. The scripts are plain Python 3.8+ and Bash and run from any agent with shell access.

    No pip installs. The Python scripts use the standard library; PyYAML, which ships with ansible-core, is needed only to read YAML in the Ansible and Prometheus checkers. Shell scripts pass shellcheck and run on RHEL/AlmaLinux and Debian/Ubuntu.

    Not through these skills. State-changing scripts are dry-run by default and require a typed confirmation. The instructions forbid bypassing it, and each has a tested rollback path. Volumes, `down -v`, `DROP` and similar are explicitly forbidden or gated.

    v1.x updates are included. A changelog ships with every release.

    New in DevOps & Cloud