inventory

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package inventory parses Ansible INI inventories just enough to extract hosts and their ansible_host addresses, so checks can target a whole fleet from the same source of truth used by the playbooks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	Name    string
	Address string // ansible_host when present, otherwise Name
	Group   string
}

Host is one inventory entry.

func LoadPath

func LoadPath(path string) ([]Host, error)

LoadPath parses a single INI inventory file or every file in a directory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL