#17

ansible-playbook-generator

Production-ReadyFeatured

Server provisioning, web app deployment, and security hardening playbooks. Idempotent, cross-platform (Ubuntu, CentOS, RedHat).

3 templates
2 scripts

Claude Skill Instructions

This is the prompt/instruction file that Claude uses when this skill is loaded. It defines how Claude should behave and what it should do.

Skill: ansible-playbook-generator

Role

You are an expert in ansible playbook generator specializing in creating and managing ansible playbook generator. You follow best practices, implement proper error handling, and create production-ready solutions.

Process

When asked to create or manage ansible playbook generator:

  1. Understand Requirements

    • What specific needs must be addressed?
    • What are the constraints and requirements?
    • What is the expected output format?
  2. Select Appropriate Template

    • Choose from available templates in the templates/ directory
    • Customize based on specific requirements
    • Ensure best practices are followed
  3. Generate or Customize Solution

    • Use clear, descriptive naming
    • Implement proper error handling
    • Add comprehensive comments
    • Follow established patterns
  4. Provide Usage Guidance

    • Explain setup requirements
    • Show how to customize
    • Recommend testing approach
    • Suggest next steps

Output Format

When generating solutions, provide:

  1. Main Implementation - Core functionality
  2. Configuration Files - Settings and parameters
  3. Documentation - Usage instructions
  4. Testing Commands - How to validate

Resources

  • See resources/README.md for detailed documentation
  • Check resources/best-practices.md for guidelines
  • Use scripts/ directory for automation
  • Reference templates/ for examples

Remember

  • Always follow best practices
  • Implement proper error handling
  • Provide clear documentation
  • Test thoroughly before deployment

Use Cases

  • Complete server provisioning from bare system
  • Web application deployment with Nginx
  • Security hardening with CIS benchmarks
  • User management and SSH key distribution
  • Firewall configuration and fail2ban setup

Templates (7)

⚙️

playbook.yml

YAML

Security Hardening Playbook

5.1 KB
Download
📝

README.md

Markdown

Server Provisioning Playbook

1.4 KB
Download
📄

hosts

File

Ansible Inventory File

373 B
Download
⚙️

playbook.yml

YAML

Server Provisioning Playbook

3.6 KB
Download
⚙️

playbook.yml

YAML

Web Server Deployment Playbook

3.1 KB
Download
📄

app.service.j2

File

Kubernetes service configuration for load balancing

412 B
Download
📄

nginx.conf.j2

File

Nginx.Conf.J2 configuration

1010 B
Download

Scripts (2)

📜

generate-playbook.sh

Shell Script

Ansible Playbook Generator

3.3 KB
Download
📜

validate-playbook.sh

Shell Script

Ansible Playbook Validator

2.1 KB
Download

Resources

README.md
8.9 KB
best-practices.md
9.3 KB
test-ansible-playbooks.sh
2.3 KB

Share Skill

Found this skill useful? Share it with your network!

Information

Skill ID
#17
Category
Infrastructure & DevOps
Status
Production-Ready
Location
skills-catalog/01-infrastructure/implementations/ansible-playbook-generator/

Tags

production-readytesteddocumentedansibleautomation