Ansible
Ansible playbook validation and configuration management best practices
Installation
First, install the Han CLI tool:
npm install -g @thebushidocollective/hanThen install the plugin:
han plugin install buki-ansibleOverview
Ansible playbook validation and configuration management best practices.
Features
- Validates Ansible playbooks with
ansible-lint - Provides skills for working with Ansible
Requirements
Install Ansible:
# macOS
brew install ansible ansible-lint
# Linux
pip install ansible ansible-lint
Skills Included
- ansible-playbooks: Writing and organizing Ansible playbooks
Hook Behavior
Validates Ansible playbooks in directories containing .yml or .yaml files using ansible-lint.
Skills
ansible-inventory
Use when managing hosts and groups in Ansible inventory for organizing infrastructure and applying configurations across environments.
ansible-playbooks
Use when writing and organizing Ansible playbooks for automated configuration management and infrastructure orchestration.
ansible-roles
Use when structuring and reusing code with Ansible roles for modular, maintainable automation and configuration management.
Hooks
Stop
Runs when the main Claude Code agent has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with *.yml,*.yaml -- sh -c 'if command -v ansible-lint >/dev/null 2>&1; then ansible-lint *.yml *.yaml 2>/dev/null || true; fi'SubagentStop
Runs when a Claude Code subagent (Task tool call) has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with *.yml,*.yaml -- sh -c 'if command -v ansible-lint >/dev/null 2>&1; then ansible-lint *.yml *.yaml 2>/dev/null || true; fi'