From aj-geddes-useful-ai-prompts-4
Automates infrastructure provisioning, configuration management, and application deployment using Ansible playbooks, roles, and inventory. Useful for patching and managing servers.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aj-geddes-useful-ai-prompts-4:ansible-automationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Overview](#overview)
Automate infrastructure provisioning, configuration management, and application deployment across multiple servers using Ansible playbooks, roles, and dynamic inventory management.
Minimal working example:
# site.yml - Main playbook
---
- name: Deploy application stack
hosts: all
gather_facts: yes
serial: 1 # Rolling deployment
pre_tasks:
- name: Display host information
debug:
var: inventory_hostname
tags: [always]
roles:
- common
- docker
- application
post_tasks:
- name: Verify deployment
uri:
url: "http://{{ inventory_hostname }}:8080/health"
status_code: 200
retries: 3
delay: 10
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Playbook Structure and Best Practices | Playbook Structure and Best Practices |
| Inventory and Variables | Inventory and Variables |
| Ansible Deployment Script | Ansible Deployment Script |
| Configuration Template | Configuration Template |
npx claudepluginhub aj-geddes/useful-ai-promptsProvides examples and best practices for writing Ansible playbooks to automate configuration management, server setup, and infrastructure orchestration.
Guides writing Ansible playbooks, tasks, handlers, variables, conditionals, and loops. Covers project structure and development workflows for automation.
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.