Regardin_Win_get_url

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}

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