ansible-cli
Skill8 starsChanged 7 months agoApache-2.0View on GitHub
Perform Ansible operations using ansible and ansible-playbook. Use for running playbooks, checking inventory, and validating configuration against target environments.
- Installs packages
In this repository54 other files it gives its agents.
- alibabacloud-cliSkill
- appdynamics-cliSkill
- argocd-cliSkill
- aws-cliSkill
- aws-cloudwatch-cliSkill
- azure-cliSkill
- bash-lintingSkill
- betterstack-cliSkill
- bitbucket-cliSkill
- chef-cliSkill
- code-reviewSkill
- commit-codeSkill
- create-dockerfileSkill
- create-terraform-helm-upgrade-planSkill
- datadog-cliSkill
- digitalocean-cliSkill
- dockerfile-lintingSkill
- dynatrace-cliSkill
- elasticsearch-cliSkill
- gcp-cliSkill
- github-cliSkill
- gitlab-cliSkill
- go-lintingSkill
- grafana-cliSkill
- grafana-loki-cliSkill
- graylog-cliSkill
- helm-cliSkill
- hetzner-cliSkill
- huaweicloud-cliSkill
- jaeger-cliSkill
- jenkins-cliSkill
- jira-and-confluence-cliSkill
- kibana-cliSkill
- kubernetes-cliSkill
- loggly-cliSkill
- maintenance-check-aws-eksSkill
- maintenance-create-ticket-on-jiraSkill
- ms-teams-cliSkill
- mysql-cliSkill
- newrelic-cliSkill
- oci-cliSkill
- packer-cliSkill
- papertrail-cliSkill
- postgresql-cliSkill
- prometheus-cliSkill
- python-lintingSkill
- rollbar-cliSkill
- salesforce-cliSkill
- sentry-cliSkill
- slack-cliSkill
- splunk-cliSkill
- terraform-cliSkill
- terraform-lintingSkill
- vault-cliSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 4 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use the inventory table and rules below when constructing all ansible/ansible-playbook commands.
- Distinctive: line 12
Update the table below with your inventory file paths before using this skill:
- Distinctive: line 19
If the target environment is unclear, ask the user before running any command.
- Very specific: line 23
If ansible is not installed or no inventory is configured, inform the user that setup is required and ask them to complete the following …
- Very specific: line 32
Always pass -i <inventory-file> explicitly — never rely on a default inventory:
- Distinctive: line 83
NEVER target an inventory file not listed in the configuration table above.
- Very specific: line 84
Always pass -i <inventory-file> explicitly on every command — never rely on ansible.cfg defaults, which may silently target the wrong hosts.
- Very specific: line 85
Always run with --check --diff first and show the output before ever suggesting a real run — never apply blind, especially against …
- Distinctive: line 86
NEVER run a playbook or ad-hoc command against a production inventory without explicit user instruction.
- Very specific: line 87
NEVER print, display, or store the contents of ansible-vault-encrypted files or vault password files — treat them as credentials.
- Very specific: line 88
If a host group or variable name is unfamiliar, inspect it with ansible-inventory first.
- Very specific: line 89
Prefer idempotent modules.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Ansible CLI Skill
Use the inventory table and rules below when constructing all ansible/ansible-playbook commands.
Configuration
Update the table below with your inventory file paths before using this skill:
| Environment | Inventory File | Vault Password File |
| Production | <your-prod-inventory> | <your-prod-vault-pass-file> |
| Staging / Non-Prod | <your-nonprod-inventory> | <your-nonprod-vault-pass-file> |
If the target environment is unclear, ask the user before running any command.
Prerequisites (one-time setup by user)
If ansible is not installed or no inventory is configured, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.
brew install ansible
ansible-inventory -i <inventory-file> --listCommand Format
Always pass -i <inventory-file> explicitly — never rely on a default inventory:
ansible-playbook -i <inventory-file> <playbook.yml> [options]Examples
# Dry run against non-prod
ansible-playbook -i <your-nonprod-inventory> <playbook.yml> --check --diff
# List hosts targeted by a play
ansible-playbook -i <your-nonprod-inventory> <playbook.yml> --list-hostsAvailable Commands
Read-only (safe, no confirmation needed)
| Command | Description |
ansible-inventory -i <inv> --list/--graph | Show inventory structure |
ansible <group> -i <inv> -m ping | Check host connectivity (no state change) |
ansible <group> -i <inv> -m setup | Gather facts about hosts |
ansible-playbook -i <inv> <playbook> --check --diff | Dry-run a playbook, showing what would change |
ansible-playbook -i <inv> <playbook> --list-hosts | List hosts a playbook would target |
ansible-playbook -i <inv> <playbook> --list-tasks | List tasks a playbook would run |
ansible-lint <playbook> | Lint a playbook for issues |
ansible-doc <module> | Show documentation for a module |
ansible-vault view <file> | View encrypted vault contents (still a credential — handle per Rules) |
Mutating operations (confirm with user before running)
| Command | Description |
ansible-playbook -i <inv> <playbook> | Run a playbook, applying real changes to target hosts |
ansible <group> -i <inv> -m <module> -a "<args>" | Run an ad-hoc module against hosts |
ansible-vault encrypt/decrypt <file> | Encrypt or decrypt a vault file |
Never run — requires explicit human approval
| Command | Reason |
ansible-playbook -i <inv> <playbook> against production inventory | Mutates live production infrastructure |
ansible <group> -m reboot/shutdown | Disrupts running workloads |
ansible <group> -m service -a "state=stopped" | Stops services on live hosts |
ansible-playbook --force-handlers combined with destructive tasks | Forces handlers to run even after failures, bypassing safety checks |
Rules
- NEVER target an inventory file not listed in the configuration table above. If a command references an unfamiliar inventory, stop and ask the user to confirm.
- Always pass
-i <inventory-file>explicitly on every command — never rely onansible.cfgdefaults, which may silently target the wrong hosts. - Always run with
--check --difffirst and show the output before ever suggesting a real run — never apply blind, especially against production. - NEVER run a playbook or ad-hoc command against a production inventory without explicit user instruction.
- NEVER print, display, or store the contents of
ansible-vault-encrypted files or vault password files — treat them as credentials. - If a host group or variable name is unfamiliar, inspect it with
ansible-inventoryfirst. - Prefer idempotent modules; flag any
shell/commandmodule usage that could be replaced with a dedicated idempotent module.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

