###### 
###### How to fix Proxy error 
###### 

- Locate transport.py that comes with pywinrm
- Modify the following line session.trust to make it false

# session.trust_env = True
session.trust_env = False

TASK [../roles/windows-files : Touch file for test] 
****************************************************************************************************
 [WARNING]: ansible_winrm_read_timeout unsupported by pywinrm (is an 
up-to-date version of pywinrm installed?)

changed: [10.21.20.56]

PLAY RECAP 
*********************************************************************************************************************************************
10.21.20.56                : ok=2    changed=1    unreachable=0    
failed=0    skipped=0    rescued=0    ignored=0


Le mercredi 5 février 2020 17:41:12 UTC+1, Pierre Ochsenbein a écrit :
>
> Guys,
>
> how we can add proxy setting in ansible when we use 
> ansible_connection=winrm?
>
> fatal: [10.2.20.56]: UNREACHABLE! => {
>     "changed": false,
>     "msg": "ssl: HTTPSConnectionPool(host='10.2.20.56', port=5986): Max 
> retries exceeded with url: /wsman (Caused by ProxyError('Cannot connect to 
> proxy.', error(104, 'Connection reset by peer')))",
>     "unreachable": true
> }
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f96368f8-fdc7-45f4-b850-e35d1812123f%40googlegroups.com.

Reply via email to