ansible

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ping added in v0.0.5

func Ping() []*ansible.Playbook

Types

type AnsibleRunner

type AnsibleRunner struct {
	Logger      log.Logger
	AnsiblePath string
	DepsPath    string
	Inventory   *ansible.Inventory
	Config      *config.Config
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(logger log.Logger, cfg *config.Config, debug int, ansiblePath, depsPath string, inventory *ansible.Inventory) (*AnsibleRunner, error)

func (*AnsibleRunner) FindARAPath added in v0.0.5

func (ar *AnsibleRunner) FindARAPath() (string, error)

func (*AnsibleRunner) RunPlaybooks

func (ar *AnsibleRunner) RunPlaybooks(ctx context.Context, playbooks []*ansible.Playbook, extraArgs ...string) error

type HostStatus added in v0.0.5

type HostStatus struct {
	Processed int `json:"processed"`
	Failures  int `json:"failures"`
	Ok        int `json:"ok"`
	Dark      int `json:"dark"`
	Changed   int `json:"changed"`
	Skipped   int `json:"skipped"`
	Rescued   int `json:"rescued"`
	Ignored   int `json:"ignored"`
}

Jump to

Keyboard shortcuts

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