⚔

Ansible

Ansible playbook validation and configuration management best practices

Installation

First, install the Han CLI tool:

npm install -g @thebushidocollective/han

Then install the plugin:

han plugin install buki-ansible

Overview

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

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'