/all-skills:ansible-vaultfrom all-skills
Guides Ansible Vault secrets management: encrypting variables/files, configuring vault passwords and IDs, and hardening playbooks against secret leakage.
Ships in all-skills. 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.
Activate when encrypting secrets, managing vault passwords, configuring vault IDs, or applying security hardening to Ansible playbooks and variable files.
This skill follows core:anti-fabrication. The ansible-vault CLI commands are stable
core-Ansible surface, low risk. The real claim area is references/secret-backends.md's
HashiCorp Vault lookup plugin options (url, token, auth_method, role_id,
secret_id, return_format). Verified against community.hashi_vault 7.1.0
(ansible-galaxy-installed live, claude-skills-223) via ansible-doc -t lookup -j: those
option names and the auth_method choices (token/userpass/ldap/approle/aws_iam/azure/
jwt/cert/gcp/none) all exist as documented. Re-verify against a current
ansible-doc community.hashi_vault.hashi_vault before asserting an option this skill
doesn't cover — the collection version-pins independently of ansible-core.
Secrets (passwords, API keys, certificates) must never be committed to version control in plaintext. Ansible Vault encrypts secrets at rest using AES-256 so they can be safely committed to git while remaining usable by Ansible at runtime.
# Create a new encrypted file
ansible-vault create secrets.yml
# Encrypt an existing file
ansible-vault encrypt vars/db_password.yml
# Decrypt a file to plaintext (use with caution)
ansible-vault decrypt vars/db_password.yml
# View encrypted content without decrypting the file
ansible-vault view vars/secrets.yml
# Edit an encrypted file (opens $EDITOR)
ansible-vault edit vars/secrets.yml
# Change the vault password on an encrypted file
ansible-vault rekey vars/secrets.yml
# Encrypt a single string value (paste the output inline in YAML)
ansible-vault encrypt_string 'my-secret-value' --name 'db_password'
Use encrypt_string to encrypt a single value and embed it inline in an otherwise plain YAML file:
ansible-vault encrypt_string 'super_secret_pw' --name 'db_password'
Output to paste into your vars file:
db_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
61383334343430363636393231363962626536346232613...
...
This lets you keep most vars readable while encrypting only the sensitive ones.
For files that are entirely sensitive (private keys, certificates), encrypt the whole file:
ansible-vault encrypt roles/app/files/server.key
The copy: module works transparently with vault-encrypted files — Ansible decrypts at runtime before copying.
Ansible needs the vault password at runtime to decrypt. Provide it in one of these ways:
# Interactive prompt (good for one-off runs)
ansible-playbook site.yml --ask-vault-pass
# Password file (good for automation)
ansible-playbook site.yml --vault-password-file ~/.vault_pass
# Environment variable (set ANSIBLE_VAULT_PASSWORD_FILE in ansible.cfg or shell)
export ANSIBLE_VAULT_PASSWORD_FILE=~/.vault_pass
ansible-playbook site.yml
# ansible.cfg
[defaults]
vault_password_file = ~/.vault_pass
The password file should contain only the password string with no trailing newline. Protect it with chmod 600.
Vault IDs let you manage multiple passwords — useful when different environments (dev, prod) or different secret types use different passwords.
# Encrypt with a vault ID label
ansible-vault encrypt_string 'dev_secret' --name 'api_key' --vault-id dev@prompt
ansible-vault encrypt_string 'prod_secret' --name 'api_key' --vault-id prod@~/.prod_vault_pass
# Run with multiple vault IDs
ansible-playbook site.yml \
--vault-id dev@~/.dev_vault_pass \
--vault-id prod@~/.prod_vault_pass
Encrypted values tagged with a vault ID look like:
api_key: !vault |
$ANSIBLE_VAULT;1.2;AES256;prod
...
A common pattern: keep plaintext vars and vault vars side by side in a directory:
inventory/
└── group_vars/
└── production/
├── vars.yml # plaintext — committed as-is
└── vault.yml # encrypted — committed safely
# vars.yml — plaintext reference file
db_host: db.example.com
db_user: app
db_password: "{{ vault_db_password }}" # references the vaulted var
# vault.yml — encrypted file, edit with: ansible-vault edit
vault_db_password: actual_secret_here
Prefix vault variables with vault_ to make it obvious where they come from.
Prevent plaintext leakage in task output:
- name: Set database password
ansible.builtin.command: "db-cli set-password {{ db_password }}"
no_log: true # suppress this task's output entirely
Suppress skipped host output:
ANSIBLE_DISPLAY_SKIPPED_HOSTS=false ansible-playbook site.yml
Protect local files:
chmod 600 ~/.vault_pass
echo ".vault_pass" >> .gitignore
echo "*.key" >> .gitignore
Audit what's encrypted before committing:
git diff --cached | grep -E "^\+.*\$ANSIBLE_VAULT"
Never use ansible-vault decrypt on a file you intend to commit — keep encrypted versions in the repo.
For production environments, consider lookup plugins that retrieve secrets from a dedicated secrets manager at runtime instead of storing vault-encrypted values in the repo.
# HashiCorp Vault lookup (requires community.hashi_vault collection)
db_password: "{{ lookup('community.hashi_vault.hashi_vault',
'secret/data/myapp/db password',
url='https://vault.example.com',
token=lookup('env', 'VAULT_TOKEN')) }}"
# AWS SSM Parameter Store (requires amazon.aws collection)
db_password: "{{ lookup('amazon.aws.aws_ssm',
'/myapp/production/db_password',
region='us-east-1') }}"
# Simple environment variable lookup (no collection needed)
api_key: "{{ lookup('env', 'MY_API_KEY') }}"
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub vinnie357/claude-skills --plugin all-skills108 skills in this plugin
/accessibilityGuide for implementing web accessibility (WCAG). Use when designing UI components, reviewing interfaces for accessibility, or ensuring compliance with W3C WAI standards./actTest GitHub Actions locally using act. Use when debugging workflows locally, testing workflow changes before pushing, or troubleshooting action failures./actionsCreate and configure GitHub Actions. Use when building custom actions, setting up runners, implementing security practices, or publishing to the marketplace./agent-loopGeneric epic-to-PR agent workflow (codename Forge) with 4-phase execution, a 6-tier hierarchy, and paired-team fan-out. Use when coordinating any feature delivery, working an issue or epic ("work epic <id>", "work issue <id>", "use Forge on the next bees ready item", "forge <id>"), picking up an epic in a fresh session (decomposing path) or with pre-existing issues (dispatching path), implementing a multi-step task that benefits from plan→test→implement→review phases, asking clarifying questions before decomposing, forming a team and assigning models per tier, or orchestrating multi-agent workflows. Loads on casual feature requests too — not only when the word "epic" appears.2 plugins in one repository ship this exact skill · first indexed Aug 7, 2026
Other plugins' skills for the same job