Back to Skills

inventory-manager

verified

Organizes Ansible inventory files, manages host groups, and configures dynamic inventory. Use when organizing Ansible inventory, managing host groups, or setting up dynamic inventory sources.

View on GitHub

Marketplace

fastagent-marketplace

armanzeroeight/fastagent-plugins

Plugin

ansible-toolkit

Configuration Management

Repository

armanzeroeight/fastagent-plugins
20stars

plugins/ansible-toolkit/skills/inventory-manager/SKILL.md

Last Verified

January 21, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/armanzeroeight/fastagent-plugins/blob/main/plugins/ansible-toolkit/skills/inventory-manager/SKILL.md -a claude-code --skill inventory-manager

Installation paths:

Claude
.claude/skills/inventory-manager/
Powered by add-skill CLI

Instructions

# Inventory Manager

## Quick Start

Organize Ansible inventory with proper host groups, variables, and dynamic inventory sources.

## Instructions

### Step 1: Create static inventory

**INI format:**
```ini
# inventory/production
[webservers]
web1 ansible_host=192.168.1.10
web2 ansible_host=192.168.1.11

[databases]
db1 ansible_host=192.168.1.20
db2 ansible_host=192.168.1.21

[loadbalancers]
lb1 ansible_host=192.168.1.30

[production:children]
webservers
databases
loadbalancers

[production:vars]
ansible_user=deploy
ansible_python_interpreter=/usr/bin/python3
environment=production
```

**YAML format:**
```yaml
# inventory/production.yml
all:
  children:
    production:
      children:
        webservers:
          hosts:
            web1:
              ansible_host: 192.168.1.10
            web2:
              ansible_host: 192.168.1.11
        databases:
          hosts:
            db1:
              ansible_host: 192.168.1.20
            db2:
              ansible_host: 192.168.1.21
        loadbalancers:
          hosts:
            lb1:
              ansible_host: 192.168.1.30
      vars:
        ansible_user: deploy
        environment: production
```

### Step 2: Organize group variables

**Directory structure:**
```
inventory/
├── production
├── staging
├── group_vars/
│   ├── all.yml
│   ├── webservers.yml
│   ├── databases.yml
│   └── production.yml
└── host_vars/
    ├── web1.yml
    └── db1.yml
```

**group_vars/all.yml:**
```yaml
---
# Variables for all hosts
ansible_python_interpreter: /usr/bin/python3
ntp_servers:
  - 0.pool.ntp.org
  - 1.pool.ntp.org
```

**group_vars/webservers.yml:**
```yaml
---
# Variables for webservers group
nginx_port: 80
nginx_worker_processes: 4
app_directory: /var/www/app
```

**group_vars/production.yml:**
```yaml
---
# Variables for production environment
environment: production
backup_enabled: true
monitoring_enabled: true
```

### Step 3: Configure host-specific variables

**host_vars/web1.yml:**
```yaml
---
nginx_wor

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
4641 chars