[英]How ansible copy file from remote windows to remote linux without local copy and ssh install in windows
OS: Wk16 vs Debian 10.4 Ansible: 2.9操作系统:Wk16 与 Debian 10.4 Ansible:2.9
Hi all大家好
I need to send a file from remote Windows to remote linux without to copy in local without to install ssh package in Windows server. I need to send a file from remote Windows to remote linux without to copy in local without to install ssh package in Windows server.
A Win_server <-- Ansible role executor -- B Ansible_host C linux_host
|
| ^
|___SENDING FILE_______________________________________TO___________|
Thank's a lot非常感谢
Checkout syncronize module at Ansible Documentation: https://docs.ansible.com/ansible/latest/collections/ansible/posix/synchronize_module.html Checkout syncronize module at Ansible Documentation: https://docs.ansible.com/ansible/latest/collections/ansible/posix/synchronize_module.html
Also, be aware to stablish direct ssh connection between targets.此外,请注意在目标之间建立直接 ssh 连接。
Hint: It's possible to activate ssh on windows and stablish connection to the linux machine.提示:可以在 windows 上激活 ssh 并稳定与 linux 机器的连接。 Take care of the risks!
小心风险!
Other way is to use fetch and copy to do the triangle copy using Ansible server as elbow.另一种方法是使用 fetch 和 copy 使用 Ansible 服务器作为肘部进行三角形复制。
Today I putted the SSH in Windows how @guistela sayed.今天我将 SSH 放在 Windows 中,@guistela 是这么说的。
I Installed "Posh-SSH" on Windows host with ansible:我用 ansible 在 Windows 主机上安装了“Posh-SSH”:
This 4 general steps permits send files from windows to linux hosts.这 4 个通用步骤允许将文件从 windows 发送到 linux 主机。
Cordially亲切地
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.