Hi Matt, thanks for the suggestion. I've added ansible_winrm_operation_timeout_sec: 100 and
ansible_winrm_read_timeout_sec: 120 to my settings and now it works!! Mike On Friday, March 17, 2017 at 11:17:19 AM UTC+1, Michele Viviani wrote: > > Hi, > I do have some problems using Ansible with Windows. > For many of my servers it works, but for some I'm receiving > "HTTPConnectionPool(host='10.10.193.180', port=5985): Read timed out" even > if the WinRM configuration is correct. (it's the same as several others) > More over, if I run a Enter-PSSession myhost.domain.com from another > Windows server, it works and after that command also ansible win_ping is > responding. > > Below my test case > ************* > [[email protected] ~]# ansible windows -m win_ping > 10.10.193.180 | UNREACHABLE! => { > "changed": false, > "msg": "ntlm: HTTPConnectionPool(host='10.229.193.180', port=5985): > Read timed out. (read timeout=30)", > "unreachable": true > } > ************* > Executing successfully Enter-PSSession myhost.domain.com from a Windows > server > ************* > [[email protected] ~]# ansible windows -m win_ping > 10.10.193.180 | SUCCESS => { > "changed": false, > "ping": "pong" > } > ************* > here my settings > > [[email protected] ~]# ansible --version > ansible 2.2.1.0 > config file = /etc/ansible/ansible.cfg > configured module search path = Default w/o overrides > [[email protected] ~]# python -V > Python 2.7.5 > [[email protected] ~]# > > Any ideas/help? > > Thanks a lot!! > Mike > -- 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/8bb099b4-3a59-46dd-a5f1-fa8f254d912b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
