When i run the same command for same host using static inventory, it works
On Thursday, August 23, 2018 at 3:33:57 AM UTC+5:30, Ravi Tiwary wrote:
>
> 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/ef69bba2-0125-4a82-9fe0-e139cc43f7f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.