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 (*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"]
Click to show internal directories.
Click to hide internal directories.