Token导航 LogoToken导航TokenDH.com
AI 工具执行命令github未标认证来源可访问clear审计通过

ansibleAnsible 自动化

Agent Skill

ansible 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,687

周安装

71

GitHub Stars

347

下载量

591
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ansible(Ansible 自动化)
来源仓库:https://github.com/teachingai/full-stack-skills
仓库路径:skills/ansible
安装命令:
npx skills add https://github.com/teachingai/full-stack-skills --skill ansible
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/teachingai/full-stack-skills --skill ansible

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合围绕仓库状态进行整理。

  • 它可帮助 Agent 跟踪代码变更、协作事项和项目进度。
  • 使用时建议结合具体仓库路径和原始 README 核验实际用法,确保权限可控。
  • 安装命令:npx skills add https://github.com/teachingai/full-stack-skills --skill ansible。
  • 安装前应确认是否会触发联网、命令执行或文件读写,避免安全风险。

SKILL.md

When to use this skill

Use this skill whenever the user wants to:

  • Write Ansible playbooks, roles, or inventory files
  • Execute ad-hoc commands or run playbooks against hosts
  • Use modules (package, copy, template, service, user, etc.) for configuration and deployment
  • Handle variables, conditionals, loops, and error handling in Ansible
  • Set up Ansible Vault for secrets management

How to use this skill

Workflow

  1. Define inventory — list target hosts in INI or YAML format
  2. Write playbook — define hosts, tasks, handlers, and vars in YAML
  3. Organize with roles — extract reusable tasks, templates, and defaults into roles
  4. Run and validate — execute with ansible-playbook and verify idempotency

Quick Start Example

# 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

Key Commands

CommandPurpose
ansible-playbook playbook.ymlRun a playbook
ansible -m ping allTest connectivity
ansible-vault encrypt vars/secrets.ymlEncrypt sensitive data
ansible-galaxy init myroleScaffold a new role

Best Practices

  • Organize with roles and group_vars/host_vars hierarchy; avoid monolithic playbooks
  • Encrypt sensitive data with ansible-vault; use idempotent tasks with state and conditionals
  • Define explicit failure handling (ignore_errors, block/rescue); use tags for selective runs
  • Control node requires Python; target hosts need SSH access; optionally use AWX/Tower for scheduling

Troubleshooting

  • Connection refused: Verify SSH keys and ansible_user in inventory
  • Module not found: Check Ansible version and use FQCN (e.g., ansible.builtin.copy)
  • Idempotency failures: Ensure tasks use state parameter and avoid shell commands where modules exist

Keywords

ansible, playbook, role, inventory, automation, configuration management, ansible-vault, infrastructure

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

25.75%
按下载量换算152

OpenCode

22.12%
按下载量换算131

Antigravity

17.03%
按下载量换算101

Gemini CLI

13.51%
按下载量换算80

Cursor

8.01%
按下载量换算47

windsurf

3.17%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/teachingai/full-stack-skills --skill ansible;npx skills add teachingai/full-stack-skills --skill "ansible" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills