Home Tutorials Categories Skills About
ZH EN JA KO
πŸ”§

Ansible

Automation Ops Cloud & DevOps

Install Command

npx clawhub@latest install ansible

Installation Guide

1
Check Environment

Make sure Node.js 22+ and OpenClaw are installed. Run openclaw --version in your terminal to verify.

2
Run Installation

Run the install command above in your terminal. ClawHub will automatically download and install Ansible to the ~/.openclaw/skills/ directory.

3
Verify Installation

Run openclaw skills list to check your installed skills and confirm Ansible appears in the list.

4
Configure (Optional)

Follow the configuration instructions in the description below to add skill settings to ~/.config/openclaw/openclaw.json5.

Manual Installation: Copy the Skill folder to ~/.openclaw/skills/ or the skills/ directory in your project root. Make sure the folder contains a SKILL.md file.
Playbook Generation Task Execution Config Management

Detailed Description

The Ansible skill integrates OpenClaw with the Ansible IT automation tool, managing servers and application configurations through conversation.

Core Features

  • Playbook Generation: Automatically generate Ansible Playbook YAML files from descriptions
  • Task Execution: Run Playbooks or Ad-hoc commands
  • Inventory Management: Manage host lists and groups
  • Role Management: Search, install, and manage Ansible Galaxy roles
  • Execution Logs: View Playbook execution results and error details

Configuration

{
  skills: {
    ansible: {
      inventoryPath: "~/.ansible/hosts",
      playbookDir: "~/playbooks/",
      askBeforeRun: true
    }
  }
}

Use Cases

  • "Write a Playbook to install Nginx and configure a reverse proxy"
  • "Restart the nginx service on all web servers"
  • "Check if all servers in the production group are online"
  • "Install the geerlingguy.docker Galaxy role"