Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DebugStdoutCallback formatted stdout/stderr output DebugStdoutCallback = "debug" // DefaultStdoutCallback default ansible screen output DefaultStdoutCallback = "default" // DenseStdoutCallback minimal stdout output DenseStdoutCallback = "dense" // JSONStdoutCallback ansible screen output as json JSONStdoutCallback = "json" // MinimalStdoutCallback minmal ansible screen output MinimalStdoutCallback = "minimal" // NullStdoutCallback don't display stuff to screen NullStdoutCallback = "null" // OnelineStdoutCallback oneline ansible screen output OnelineStdoutCallback = "oneline" // StderrStdoutCallback splits output, sending failed tasks to stderr StderrStdoutCallback = "stderr" // TimerStdoutCallback adds time to play stats TimerStdoutCallback = "timer" // YamlStdoutCallback yamlized ansible screen output YamlStdoutCallback = "yaml" )
View Source
const (
// AnsibleStdoutCallbackEnv
AnsibleStdoutCallbackEnv = "ANSIBLE_STDOUT_CALLBACK"
)
Variables ¶
This section is empty.
Functions ¶
func AnsibleStdoutCallbackSetEnv ¶
func AnsibleStdoutCallbackSetEnv(callback string)
AnsibleStdoutCallbackToJSON sets the stdout callback to json
Types ¶
type StdoutCallbackResultsFunc ¶
StdoutCallbackResultsFunc defines a function which manages ansible's stdout callbacks. The function expects and string for prefixing output lines, a reader that receives the data to be wrote and a writer that defines where to write the data comming from reader
func GetResultsFunc ¶
func GetResultsFunc(callback string) StdoutCallbackResultsFunc
GetResultsFunc return a func which manages the stdout callback results
Click to show internal directories.
Click to hide internal directories.