ansible-automation by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill ansible-automation使用 Ansible playbook、角色和动态库存管理,实现跨多台服务器的基础设施配置、配置管理和应用程序部署自动化。
最小工作示例:
# 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)
references/ 目录下的详细实现:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 指南 | 内容 |
|---|---|
| Playbook 结构与最佳实践 | Playbook Structure and Best Practices |
| 库存与变量 | Inventory and Variables |
| Ansible 部署脚本 | Ansible Deployment Script |
| 配置模板 | Configuration Template |
每周安装数
298
代码仓库
GitHub 星标数
116
首次出现
Jan 21, 2026
安全审计
安装于
opencode248
codex240
gemini-cli240
github-copilot224
cursor191
claude-code190
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 |
Weekly Installs
298
Repository
GitHub Stars
116
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode248
codex240
gemini-cli240
github-copilot224
cursor191
claude-code190
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
100,500 周安装
品牌声音准则生成工具 - 从文档、对话和报告自动创建LLM就绪的品牌指南
311 周安装
Axiom 仪表板构建指南:设计决策优先的监控仪表板与数据可视化
311 周安装
Google Ads Manager 技能:广告系列管理、关键词研究、出价优化与效果分析
311 周安装
Telegram机器人开发教程:构建AI助手、通知系统与群组自动化工具
311 周安装
AI图像生成提示词优化指南:DALL-E、Midjourney、Stable Diffusion提示工程技巧
311 周安装
AI协作头脑风暴工具 - 将想法转化为完整设计规范,支持代码模板与项目管理
311 周安装