playbook

package
v0.0.0-...-d4864d5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package playbook provides helper functionality for running Ansible playbooks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invocation

type Invocation struct {
	Path      string
	Arguments []string
}

Invocation is a specific invocation of a playbook.

func (Invocation) Tee

func (i Invocation) Tee() (*Result, error)

Tee executes a playbook while simultaneously writing to both stdout and a buffer. A stringified version of the buffer along with other information is returned. Based on https://stackoverflow.com/a/62630988.

type Result

type Result struct {
	Invocation *Invocation
	StartTime  time.Time
	Output     string
}

Result is the result of executing a playbook. Pointer not too necessary for invocation, just allows us to point at the original invocation.

Jump to

Keyboard shortcuts

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