Ansible Automation

Ansible Automation

Guides an AI agent to automate server configuration, patching and application deployment with Ansible playbooks, roles, inventory and rolling updates.

Skill files7 files

references/

scripts/

templates/

SKILL.md100 lines
1
---
2
name: ansible-automation
3
description: >
4
Infrastructure automation and configuration management using Ansible
5
playbooks, roles, and inventory. Use for deploying applications, patching, and
6
managing servers.
7
---
8
9
# Ansible Automation
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Automate infrastructure provisioning, configuration management, and application deployment across multiple servers using Ansible playbooks, roles, and dynamic inventory management.
22
23
## When to Use
24
25
- Configuration management
26
- Application deployment
27
- Infrastructure patching and updates
28
- Multi-server orchestration
29
- Cloud instance provisioning
30
- Container management
31
- Database administration
32
- Security compliance automation
33
34
## Quick Start
35
36
Minimal working example:
37
38
```yaml
39
# site.yml - Main playbook
40
---
41
- name: Deploy application stack
42
hosts: all
43
gather_facts: yes
44
serial: 1 # Rolling deployment
45
46
pre_tasks:
47
- name: Display host information
48
debug:
49
var: inventory_hostname
50
tags: [always]
51
52
roles:
53
- common
54
- docker
55
- application
56
57
post_tasks:
58
- name: Verify deployment
59
uri:
60
url: "http://{{ inventory_hostname }}:8080/health"
61
status_code: 200
62
retries: 3
63
delay: 10
64
// ... (see reference guides for full implementation)
65
```
66
67
## Reference Guides
68
69
Detailed implementations in the `references/` directory:
70
71
| Guide | Contents |
72
|---|---|
73
| [Playbook Structure and Best Practices](references/playbook-structure-and-best-practices.md) | Playbook Structure and Best Practices |
74
| [Inventory and Variables](references/inventory-and-variables.md) | Inventory and Variables |
75
| [Ansible Deployment Script](references/ansible-deployment-script.md) | Ansible Deployment Script |
76
| [Configuration Template](references/configuration-template.md) | Configuration Template |
77
78
## Best Practices
79
80
### ✅ DO
81
82
- Use roles for modularity
83
- Implement proper error handling
84
- Use templates for configuration
85
- Leverage handlers for idempotency
86
- Use serial deployment for rolling updates
87
- Implement health checks
88
- Store inventory in version control
89
- Use vault for sensitive data
90
91
### ❌ DON'T
92
93
- Use command/shell without conditionals
94
- Copy files without templates
95
- Run without check mode first
96
- Mix environments in inventory
97
- Hardcode values
98
- Ignore error handling
99
- Use shell for simple tasks
100

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…