Hi All,
I am trying to use EC2 external inventory
<https://raw.github.com/ansible/ansible/devel/contrib/inventory/ec2.py> script
(ec2.py/ec2.ini) for AWS instances.
All my AWS EC2 instances are Windows hosts.
When I run below command:
ansible ec2 -i /etc/ansible/ec2.py -m win_ping
I get below error:
172.31.86.58 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: connect to host
172.31.86.58 port 22: Connection timed out\r\n",
"unreachable": true
}
How do I edit ec2.ini/ec2.py, so that it tries connecting only via winrm
and not using ssh?
Regards,
Pawan Sawalani
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/3a95642d-ffb2-4f29-9a59-4f8150a8b5df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.