I'm using this command to ping a Windows host from my CentOS 8 Ansible server
ansible windows -m win_ping
But I get this output when executing it
windows | FAILED! => {
"msg": "winrm or requests is not installed: No module named winrm"
}
This is the entry for the Windows machine on my Ansible hosts file
[w10]
windows ansible_host=10.0.10.15
[w10:vars]
ansible_user=someuser
ansible_password=somepassword
ansible_connection=winrm
ansible_port=5986
Winrm is enabled on the Windows machine. I also installed the pywinrm
module with the following command, but it didn't solve my problem
pip3 install pywinrm
What am I doing wrong?