Skip to content

Latest commit

 

History

History
80 lines (62 loc) · 1.55 KB

File metadata and controls

80 lines (62 loc) · 1.55 KB

Playbooks

Purpose

Playbooks are KOMU's preferred operations path. They encode known workflows so the product does not depend only on provider-generated commands.

Catalog structure

Playbooks are defined through a hybrid model:

  • JSON catalog metadata
  • Python renderer methods that produce typed plans

Each definition can include:

  • category
  • summary
  • keywords and aliases
  • metadata
  • prerequisites
  • platform and distro hints
  • risk level
  • dry-run support
  • verification checks
  • parameters
  • repair playbooks
  • optional rollback guidance

Current categories

  • install
  • configure
  • diagnose
  • repair
  • security
  • network
  • runtime
  • service

Included playbooks

  • Docker install
  • Nginx install
  • Node.js install
  • PM2 install
  • Git install
  • UFW setup
  • Fail2ban setup
  • SSL setup
  • service restart
  • service enable
  • service status
  • port diagnosis
  • disk usage diagnosis
  • process check
  • log inspection
  • system update
  • package repair
  • permission fix
  • reverse proxy setup

Matching and rendering

The playbook flow is:

  1. score candidate playbooks from keywords and aliases
  2. extract parameters from the task
  3. apply defaults
  4. block the plan if required inputs are missing
  5. render typed steps and commands
  6. attach change summaries and rollback guidance where possible
  7. send the plan through the security review layer

Extension direction

Custom playbook catalogs can be added later through:

  • extensions/playbooks

This allows local or organization-specific playbooks to plug into the same match-render-review pipeline.