jyjeanne/ai-setup-forge/ansible-playbook-creation

Claude Code and agent skill by jyjeanne/ai-setup-forge

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

To automate server configuration. Use when: Tasks, handlers, and roles; When the specific requirement for Ansible Playbook Creation arises in the project.

Install

npx vskill@latest install jyjeanne/ai-setup-forge/ansible-playbook-creation

SKILL.md

The same SKILL.md was published earlier as jyjeanne/ai-setup-forge/ansible-playbook-creation.

Purpose

To automate server configuration.

When to Use

  • Tasks, handlers, and roles.
  • When the specific requirement for Ansible Playbook Creation arises in the project.

Procedure

1. Inventory Configuration

Define the target hosts in an inventory.ini or inventory.yml file.

ini
[webservers]
web1.example.com ansible_host=192.168.1.10
web2.example.com ansible_host=192.168.1.11
[dbservers]
db1.example.com ansible_host=192.168.1.20
2. Creating a Playbook

Create a site.yml file to define the tasks for each group.

yaml
---
- name: Configure Web Servers
hosts: webservers
become: yes # Run as root
vars:
http_port: 80
max_clients: 200
tasks:
- name: Ensure Nginx is installed
apt:
name: nginx
state: present
update_cache: yes
- name: Copy Nginx configuration
template:
src: templates/nginx.conf.j2
dest: /etc/nginx/nginx.conf
notify:
- Restart Nginx
handlers:
- name: Restart Nginx
service:
name: nginx
state: restarted
3. Using Roles for Scalability

Organize playbooks into roles for reusability.

text
roles/
common/
tasks/main.yml
webserver/
tasks/main.yml
templates/nginx.conf.j2
handlers/main.yml
4. Running the Playbook

Use ansible-playbook to execute the automation.

bash
# Check syntax
ansible-playbook site.yml --syntax-check
# Run the playbook
ansible-playbook -i inventory.ini site.yml

Constraints

  • Idempotency: Ensure tasks can run multiple times without changing the result if the system is already in the desired state.
  • Security: Use ansible-vault to encrypt sensitive variables (passwords, API keys).
  • Modularity: Break large playbooks into smaller roles.

Expected Output

A set of YAML files that automatically configure remote servers to a desired state in a reproducible way.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Refreshed 5 Nov 2026, 22 days ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jyjeanne/ai-setup-forge/ansible-playbook-creation/badge)](https://verified-skill.com/skills/jyjeanne/ai-setup-forge/ansible-playbook-creation)

Something wrong with this skill or its page? Tell us.