ansible

package
v0.0.2-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name Ansible Runner Name
	Name = "ansible"
)

Variables

This section is empty.

Functions

func NewRunner

func NewRunner(cfg *config.Config) (runners.Runner, error)

NewRunner return a new Ansible Runner

Types

type Ansible

type Ansible struct {
	runners.Runner
	// contains filtered or unexported fields
}

Ansible Ansible runner struct

func (*Ansible) Cleanup

func (a *Ansible) Cleanup(plan *testers.Plan) error

Cleanup remove all (left behind) Ansible resources created for the given Plan.

func (*Ansible) Execute

func (a *Ansible) Execute(plan *testers.Plan, parser chan<- parsers.Input) error

Execute run the given commands and return the logs of it and / or error

func (*Ansible) GetHostsForTest

func (a *Ansible) GetHostsForTest(test *config.Test) (*testers.Hosts, error)

GetHostsForTest return a mocked list of hots for the given test config

func (*Ansible) Prepare

func (a *Ansible) Prepare(runOpts config.RunOptions, plan *testers.Plan) error

Prepare prepare Ansible runner for usage, though right now there isn't really anything in need of preparations

Jump to

Keyboard shortcuts

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