- Removed ansible_connection = local
   - Corrected to ansible_port=5985

Following error occured
abc012.abctst.lcl | FAILED! => {
    "msg": "winrm or requests is not installed: No module named winrm"
}

But if i check on windows machine (abc012.abctst.lcl) run command "winrm 
quickconfig"
Output:
WinRM service is already running on this machine.
WinRM is already set up for remote management on this computer.

whats wrong now? :(

On Thursday, May 24, 2018 at 1:32:21 PM UTC-7, Jordan Borean wrote:
>
> Hey
>
> Here are some brief notes
>
>
>    - Your host inventory defined ansible_connection twice, once as 
>    ansible_connection=local and the other as ansible_connection=winrm. Use 
>    local if you want to run things on the Ansible controller and use winrm 
>    when you want to run something on the WIndows host
>    - Use ansible_port instead of ansible_ssh_port
>    - When connecting to WIndows hosts use win_ module, like win_ping 
>    instead of ping
>    - Your error is because you are trying to run win_ping over the local 
>    connection where PowerShell isn't installed
>
> Thanks
>
> Jordan
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0371610f-76ab-4925-bae2-8f96037d62a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to