skills/devops-skills/ansible/SKILL.md
Provides comprehensive guidance for Ansible automation including playbooks, roles, inventory, and module usage. Use when the user asks about Ansible, needs to automate IT tasks, create Ansible playbooks, or manage infrastructure with Ansible.
npx skillsauth add teachingai/agent-skills ansibleInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever the user wants to:
ansible-playbook and verify idempotency# site.yml
---
- name: Deploy web application
hosts: webservers
become: true
vars:
app_port: 8080
tasks:
- name: Install nginx
ansible.builtin.package:
name: nginx
state: present
- name: Deploy config from template
ansible.builtin.template:
src: templates/nginx.conf.j2
dest: /etc/nginx/nginx.conf
notify: restart nginx
handlers:
- name: restart nginx
ansible.builtin.service:
name: nginx
state: restarted
# Run the playbook
ansible-playbook -i inventory/production site.yml
# Ad-hoc ping all hosts
ansible -m ping all
| Command | Purpose |
|---------|---------|
| ansible-playbook playbook.yml | Run a playbook |
| ansible -m ping all | Test connectivity |
| ansible-vault encrypt vars/secrets.yml | Encrypt sensitive data |
| ansible-galaxy init myrole | Scaffold a new role |
group_vars/host_vars hierarchy; avoid monolithic playbooksansible-vault; use idempotent tasks with state and conditionalsignore_errors, block/rescue); use tags for selective runsansible_user in inventoryansible.builtin.copy)state parameter and avoid shell commands where modules existansible, playbook, role, inventory, automation, configuration management, ansible-vault, infrastructure
development
Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.
tools
Provides comprehensive guidance for Flask framework including routing, templates, forms, database integration, extensions, and deployment. Use when the user asks about Flask, needs to create web applications, implement routes, or build Python web services.
development
Provides comprehensive guidance for FastAPI framework including routing, request validation, dependency injection, async operations, OpenAPI documentation, and database integration. Use when the user asks about FastAPI, needs to create REST APIs, or build high-performance Python web services.
development
Provides comprehensive guidance for Django framework including models, views, templates, forms, admin, REST framework, and deployment. Use when the user asks about Django, needs to create web applications, implement models and views, or build Django REST APIs.