Hi,
I'm still facing the same error, I've defined my host in my host_vars as
follows:
ansible_host: xxx.xxx.xx.xx
ansible_user: vagrant
ansible_password: vagrant
ansible_port: 5985
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore
I've also defined my environment variables but I'm still getting this error:
win2 | UNREACHABLE! => {
"changed": false,
"msg": "plaintext: HTTPConnectionPool(host='myproxyhost', port=3128):
Read timed out.
(read timeout=30)",
"unreachable": true
}
On Friday, January 5, 2018 at 12:28:37 AM UTC, Jordan Borean wrote:
>
> If you are trying to connect through a proxy I would set the WinRM host
> settings based on the host itself and then define the proxy vars as
> environment variables, e.g.
>
> inventory.ini
>
> ansible_host=xx.xx.xx.xx
> ansible_user=username
> ansible_password=password
> ansible_port=5986
> ansible_connection=winrm
> ansible_winrm_server_cert_validation=ignore
>
>
> When running Ansible make sure you have defined the following environment
> variables
>
> export HTTPS_PROXY=https://proxyhost:3128
> ansible-playbook -i inventory.ini main.yml
>
> Unfortunately there is no way to programatically define the proxy for an
> individual host in Ansible as pywinrm does not expose those parameters.
>
> 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 [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/0bc3ad63-d154-478e-b46c-b2a81c2ec058%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.