ansible

ansible is a skill for Claude Code, Codex from chaterm/terminal-skills. It costs 9 tokens per session (2,087 once invoked), scanned B, original, Apache-2.0.

A guide for using Ansible, a tool that automates commands and configuration across multiple computers. It covers hosts, reusable playbooks, modules, permissions, and check mode.

In plain words
What is it for?
Use it to test server access, run commands, copy files, install software, manage services, collect system information, target host groups, preview changes, and show differences.
Why use it?
It reduces the need to run the same setup, maintenance, or inspection commands manually on each server.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to test server access, run commands, copy files, install software, manage services, collect system information, target host groups, preview changes, and show differences.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chaterm/terminal-skills/ansible
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add chaterm/terminal-skills --skill ansible
Clone the repo
git clone --depth 1 https://github.com/chaterm/terminal-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ansible

README.md
[![agentmods](https://agentmods.dev/badge/skills/chaterm/terminal-skills/ansible/github.svg)](https://agentmods.dev/skills/chaterm/terminal-skills/ansible)
Your own site
<a href="https://agentmods.dev/skills/chaterm/terminal-skills/ansible"><img src="https://agentmods.dev/badge/skills/chaterm/terminal-skills/ansible/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ansible

Your own site · 80×15
<a href="https://agentmods.dev/skills/chaterm/terminal-skills/ansible"><img src="https://agentmods.dev/badge/skills/chaterm/terminal-skills/ansible.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,087 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.02087
Opus 5.5 $0.00004 $0.00835
Sonnet 5.5 $0.00002 $0.00417
Haiku 4.5 $0.00001 $0.00209

Measured 3mo ago against content hash 1b97badea062, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ansible scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

-K # 询问 sudo 密码

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- curl
devops/ansible/SKILL.md · 385 lines

How it starts

The opening of the file, as written. The whole thing — 385 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ansible 自动化运维

概述

Playbook 编写、角色管理、动态 inventory 等技能。

基础命令

Ad-hoc 命令

# 测试连通性
ansible all -m ping
ansible webservers -m ping

# 执行命令
ansible all -m command -a "uptime"
ansible all -m shell -a "df -h | grep /dev"

# 复制文件
ansible all -m copy -a "src=/local/file dest=/remote/file"

# 安装软件
ansible all -m apt -a "name=nginx state=present" --become
ansible all -m yum -a "name=nginx state=present" --become

# 管理服务
ansible all -m service -a "name=nginx state=started" --become

# 收集信息
ansible all -m setup
ansible all -m setup -a "filter=ansible_distribution*"

常用参数

-i inventory          # 指定 inventory
-m module             # 指定模块
-a arguments          # 模块参数
-b, --become          # 提权
-K                    # 询问 sudo 密码
-u user               # 指定用户
-k                    # 询问 SSH 密码
--limit host          # 限制主机
-v, -vv, -vvv         # 详细输出
--check               # 检查模式(不执行)
--diff                # 显示差异

Inventory

静态 inventory

# inventory/hosts
[webservers]
web1.example.com
web2.example.com ansible_host=192.168.1.10

[dbservers]
db1.example.com ansible_user=admin
db2.example.com

[production:children]
webservers
dbservers

[all:vars]
ansible_python_interpreter=/usr/bin/python3

YAML 格式

# inventory/hosts.yml
all:
  children:
    webservers:
      hosts:
        web1.example.com:
        web2.example.com:
          ansible_host: 192.168.1.10
    dbservers:
      hosts:
        db1.example.com:
          ansible_user: admin
  vars:
    ansible_python_interpreter: /usr/bin/python3

动态 inventory

# 使用脚本
ansible-inventory -i inventory.py --list

# AWS EC2
ansible-inventory -i aws_ec2.yml --list

# 示例 aws_ec2.yml
plugin: amazon.aws.aws_ec2
regions:
  - us-east-1
filters:
  tag:Environment: production
keyed_groups:
  - key: tags.Role
    prefix: role

Playbook

基础结构

# playbook.yml
---
- name: Configure web servers
  hosts: webservers
  become: yes
  vars:
    http_port: 80
    
  tasks:
    - name: Install nginx
      apt:
        name: nginx
        state: present
        update_cache: yes
      
    - name: Start nginx
      service:
        name: nginx
        state: started
        enabled: yes
        
    - name: Copy config
      template:
        src: nginx.conf.j2
        dest: /etc/nginx/nginx.conf
      notify: Restart nginx
      
  handlers:
    - name: Restart nginx
      service:
        name: nginx
        state: restarted

Read the full file on GitHub · 385 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 385 lines · 9 tokens per session scan B 1b97badea062

Subscribe to this mod's changes

ansible is a skill published in the GitHub repository chaterm/terminal-skills (60 stars, last pushed 9mo ago), licensed Apache-2.0. It adds 9 tokens to every session and 2,087 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ansible compared with skills from other repositories

ansible next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ansiblechaterm/terminal-skillsSkill609mo agoApache-2.0B9Claude Code, Codex
compact-manualmario-hernandez/claude-compact-manualSkill37mo agoMITA81Claude Code
give-me-tipscode-yeongyu/oh-my-openagentSkill71ktodaynoneA45Claude Code, Codex
omo-relaycode-yeongyu/oh-my-openagentSkill71ktodaynoneA120Claude Code, Codex
cron-task-creatoropen-octo/octo-agentSkill160yesterdayMITA89Claude Code, Codex
workflow-creatoropen-octo/octo-agentSkill160yesterdayMITA278Claude Code, Codex
resume-craftingopen-octo/octo-agentSkill160yesterdayMITA180Claude Code, Codex