ansible

package
v0.0.0-...-53d016b Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ANSIBLE_CONCURRENCY        = 10
	ANSIBLE_CONNECTION_TIMEOUT = 10
	ANSIBLE_SSH_ARGS           = "ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=false'"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

func C

func C() *Client

func (*Client) CopyFile

func (t *Client) CopyFile(user, src, dest string, hosts []string, timeout ...int) ([]byte, string, error)

copy file from src to remote host dest hosts: ["192.168.20.12","192.168.20.11:22","192.168.20.10:444"]

func (*Client) ExecShell

func (t *Client) ExecShell(user, shell string, hosts []string, timeout int) ([]byte, string, error)

execute shell hosts: ["192.168.20.12","192.168.20.11:22","192.168.20.10:444"]

func (*Client) Version

func (t *Client) Version() ([]byte, error)

get local ansible version

Jump to

Keyboard shortcuts

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