I am trying to run ansible command sudo ansible -i 
./dynamic-inventory/ec2.py tag_Name_aws_test_win -m win_ping
using module win_ping from ansible server to remote node and it is throwing 
error 
aws_test_win | UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to connect to the host via ssh: ssh  connect to host 
172.31.1.10 port 22:

I have defined variables in yml file under group_vars call 
tag_Name_aws_test_win

ansible_user: 'ansible'
ansible_password: 'XXXXXXXXXXXXX'
ansible_winrm_transport: credssp
ansible_port: '5985'
ansible_connection: 'winrm'

ansible_winrm_server_cert_validation: ignore
validate_certs: false

Please advise if I missing something.

-- 
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/3013c7c5-34bc-48bf-8d69-3a8900ac7b7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to