Regardin_Win_get_url

22 views
Skip to first unread message

kavin....@exterro.com

unread,
Apr 23, 2018, 1:30:35 PM4/23/18
to Ansible Project
Hi All,
I am trying to get the files form windows machine using ftp.If I run the playbook i was getting the below mentioned errors.Can anyone help me regarding this error.


 FAILED! => {"changed": false, "module_stderr": "Shared connection to 172.31.7.231 closed.\r\n", "module_stdout": "/bin/sh: powershell: command not found\r\n", "msg": "MODULE FAILURE", "rc": 127}

---------------------------------------------------------------------------------------------

 "changed": false,
    "module_stderr": "OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 3141\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 127\r\nShared connection to 172.31.7.231 closed.\r\n",
    "module_stdout": "/bin/sh: powershell: command not found\r\n",
    "msg": "MODULE FAILURE",
    "rc": 127
}

Jordan Borean

unread,
Apr 23, 2018, 4:01:03 PM4/23/18
to Ansible Project
You are trying to connect to the host 172.31.7.231 with SSH whereas we only support WinRM with Windows. Make sure you set ansible_connection: winrm in your inventory so it runs over WinRM.

Thanks

Jordan
Reply all
Reply to author
Forward
0 new messages