---
name: reverse-engineer-server-state-into-configuration-management
description: "Inspects Linux hosts to inventory packages, running services, and modified configuration files, then generates draft configuration management playbooks and inventory definitions for review. Use when an agent must document unmanaged server state or drift."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, GitHub, Chat."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/reverse-engineer-server-state-into-configuration-management/"
  kind: skill
  hermes:
    tags: ["ansible", "infrastructure", "devops", "automation", "sysadmin"]
    category: ops
    requires_toolsets: ["terminal"]
---
# Reverse-engineer server state into configuration management code

Inspect unmanaged Linux hosts, inventory package and file diffs, and generate playbook templates.

## When to use

Inspect unmanaged or drifting servers to inventory active packages, running services, and configuration file overrides. The bot catalogs deviations from base distributions, translates the discovered state into version-controlled infrastructure manifests, and flags undocumented drift across your environment.

## Inputs

- `target_host`: Hostname or address of the Linux host to inspect.
- `baseline_distribution` (optional): Optional base distribution or expected system baseline for comparison.

## Steps

1. When you ask: Request host audit (A person asks in chat for a host audit and draft playbooks.)
2. Inspect packages and modified files
3. Generate draft playbooks for review

## Instructions

Inspect target hosts through the terminal to catalog running services, installed software, and modified configuration files. Compare discovered configurations against default system baselines to isolate custom modifications. Convert the captured state into reusable infrastructure-as-code manifests and inventory definitions. Never push commits to GitHub, alter server files, or restart any system services without explicit user approval.

## Approvals

- Pushing commits to GitHub must wait for explicit user approval.
- Altering server files must wait for explicit user approval.
- Restarting system services must wait for explicit user approval.

## Output

Draft configuration management playbooks and inventory definitions for review. (format: file)

## Source

Summarized in our own words from [Show HN: Enroll, a tool to reverse-engineer servers into Ansible config mgmt](https://news.ycombinator.com/item?id=46449852) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/reverse-engineer-server-state-into-configuration-management/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
