Generates Ansible playbooks, roles, inventories, and configs for server provisioning, app deployment, service configuration, and idempotent automation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ansible-playbook-creator:creating-ansible-playbooksThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate production-ready Ansible playbooks, roles, and inventories for infrastructure automation. Supports provisioning servers, deploying applications, configuring services, and enforcing desired state across fleets of machines using SSH-based agentless automation.
Generate production-ready Ansible playbooks, roles, and inventories for infrastructure automation. Supports provisioning servers, deploying applications, configuring services, and enforcing desired state across fleets of machines using SSH-based agentless automation.
ansible --version)ansible-lint installed for playbook validationansible.cfg, inventory/, roles/, group_vars/) to understand current structurehosts, become, vars, tasks, handlerstasks/, handlers/, templates/, defaults/, vars/, meta/)group_vars/ and host_vars/ for environment-specific values, keeping secrets in vault-encrypted filesansible-lint and ansible-playbook --check --diff (dry run).yml) with structured tasks, handlers, and variables.j2) for dynamic configuration filesgroup_vars/ and host_vars/ for environment separationansible.cfg with connection and privilege escalation settings| Error | Cause | Solution |
|---|---|---|
unreachable: Failed to connect to host | SSH connection failure or wrong host/port | Verify SSH keys, host IPs, and that port 22 is open with ansible -m ping |
permission denied on become | Missing or incorrect sudo password | Add --ask-become-pass or configure ansible_become_password in vault |
undefined variable | Variable not defined in vars, defaults, or inventory | Check variable precedence; define in defaults/main.yml or group_vars/ |
ansible-lint: syntax-check failed | YAML syntax error or deprecated module usage | Run ansible-lint -v and fix reported issues; replace deprecated modules |
changed on every run (not idempotent) | Using command/shell without creates/removes guards | Add creates: parameter or switch to purpose-built modules (copy, template, file) |
npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin ansible-playbook-creatorGuides Ansible playbook creation, roles, inventories, project structure, modules, handlers, error handling, and debugging YAML syntax, module failures, variable precedence.
Provides examples and best practices for writing Ansible playbooks to automate configuration management, server setup, and infrastructure orchestration.
Provides Ansible playbook and role structures plus best practices for idempotent tasks, handlers, FQCN, and inventory management. Use when writing playbooks, roles, or automating infrastructure.