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 partme-ai/full-stack-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
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
tools
Creates new uni-app projects via the official CLI or HBuilderX with Vue 2/Vue 3 template selection, manifest.json and pages.json configuration, and directory structure setup. Use when the user wants to scaffold a new uni-app project, initialize project files with a single command, or set up the development environment.
tools
Browses, installs, configures, and manages plugins from the uni-app plugin market (ext.dcloud.net.cn) including component plugins, API plugins, and template plugins with dependency handling. Use when the user needs to find and install uni-app plugins, configure plugin settings, manage plugin dependencies, or integrate third-party components.
tools
Develops native Android and iOS plugins for uni-app including module creation, JavaScript-to-native communication, and plugin packaging for distribution. Use when the user needs to build custom native modules, extend uni-app with native capabilities (camera, Bluetooth, sensors), or create publishable native plugins.