raiseerrors.AnsibleError('using -c ssh on certain older ssh versions may not support ControlPersist, set ANSIBLE_SSH_ARGS="" (or ansible_ssh_args in the config file) before running again')
return(p.returncode,'',stdout,stderr)
defput_file(self,in_path,out_path):
''' transfer a file from local to remote '''
vvv("PUT %s TO %s"%(in_path,out_path),host=self.host)
ifnotos.path.exists(in_path):
raiseerrors.AnsibleFileNotFound("file or module does not exist: %s"%in_path)