Token导航 LogoToken导航TokenDH.com
运维和基础设施敏感数据github未标认证来源可访问clear审计提醒

creating-ansible-playbooks创建 ansible 剧本

Agent Skill

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

总安装

998

周安装

42

GitHub Stars

2,123

下载量

349
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill creating-ansible-playbooks

简介

该技能生成 Ansible 剧本与角色,用于服务器 provisioning、应用部署与状态管理。

  • 适用于 SSH 管控多台主机、执行批量配置或自动化运维流水线建设时。
  • 需提前准备 inventory 与 sudo 凭据,支持系统级资源配置。
  • 安装方式:GitHub 仓库,使用 npx 命令添加;注意控制节点与目标机 Python 版本匹配。
  • creating-ansible-playbooks 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Creating Ansible Playbooks

Overview

Generate production-ready Ansible playbooks, roles, and inventories for infrastructure automation. Supports provisioning servers, deploying applications, configuring services, and enforcing desired state across fleets of machines using SSH-based agentless automation.

Prerequisites

  • Ansible 2.14+ installed (ansible --version)
  • SSH access to target hosts with key-based authentication
  • Python 3.9+ on control node and managed nodes
  • Inventory of target hosts (IPs or hostnames)
  • Privilege escalation credentials (sudo) if configuring system-level resources
  • ansible-lint installed for playbook validation

Instructions

  1. Scan the project for existing Ansible files (ansible.cfg, inventory/, roles/, group_vars/) to understand current structure
  2. Determine the automation target: server provisioning, application deployment, configuration management, or security hardening
  3. Create the playbook YAML with proper structure: hosts, become, vars, tasks, handlers
  4. Extract reusable logic into roles using the standard directory layout (tasks/, handlers/, templates/, defaults/, vars/, meta/)
  5. Define variables in group_vars/ and host_vars/ for environment-specific values, keeping secrets in vault-encrypted files
  6. Use Jinja2 templates for configuration files that vary across environments
  7. Add handlers for service restarts triggered by configuration changes
  8. Validate the playbook with ansible-lint and ansible-playbook --check --diff (dry run)
  9. Test idempotency by running the playbook twice and confirming no changes on the second run

Output

  • Ansible playbooks (.yml) with structured tasks, handlers, and variables
  • Role directories following Ansible Galaxy structure
  • Jinja2 templates (.j2) for dynamic configuration files
  • Inventory files (INI or YAML) with host groups
  • group_vars/ and host_vars/ for environment separation
  • ansible.cfg with connection and privilege escalation settings

Error Handling

ErrorCauseSolution
unreachable: Failed to connect to hostSSH connection failure or wrong host/portVerify SSH keys, host IPs, and that port 22 is open with ansible -m ping
permission denied on becomeMissing or incorrect sudo passwordAdd --ask-become-pass or configure ansible_become_password in vault
undefined variableVariable not defined in vars, defaults, or inventoryCheck variable precedence; define in defaults/main.yml or group_vars/
ansible-lint: syntax-check failedYAML syntax error or deprecated module usageRun ansible-lint -v and fix reported issues; replace deprecated modules
changed on every run (not idempotent)Using command/shell without creates/removes guardsAdd creates: parameter or switch to purpose-built modules (copy, template, file)

Examples

  • "Create an Ansible playbook to provision an Ubuntu 22.04 server with Nginx, Certbot, and a firewall allowing only 80/443."
  • "Generate a role that deploys a Python Flask app with Gunicorn, systemd service file, and log rotation."
  • "Write an Ansible playbook to harden SSH config across all servers: disable root login, enforce key auth, set idle timeout."

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Antigravity

27.79%
按下载量换算97

OpenCode

21.49%
按下载量换算75

Codex

17.62%
按下载量换算61

Claude Code

10.76%
按下载量换算38

Gemini CLI

7.58%
按下载量换算26

kilo

2.98%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills