cancel
Showing results for 
Search instead for 
Did you mean: 
RHCA
Cadet
Cadet
  • 3,657 Views

Ansible error: the connection attempt timed out

Hi guys,
 
I try to connect with winrm to a Windows server 2016: winrm is installed, port winrm is open and firewall down (windows)
 
Ansibler server is in a LAN and the windows host in a DMZ so not in the same network but the ping and telnet works fine.
 
Ansible output:
 

ansible@host01:~/playbooks$ ansible all -i ../inventory_winrm -m win_ping -vvvv
ansible 2.8.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible
  python version = 2.7.5 (default, Jun 11 2019, 14:33:56) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /home/ansible/inventory_winrm as it did not pass it's verify_file() method
script declined parsing /home/ansible/inventory_winrm as it did not pass it's verify_file() method
auto declined parsing /home/ansible/inventory_winrm as it did not pass it's verify_file() method
Parsed /home/ansible/inventory_winrm inventory source with ini plugin
Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/minimal.pyc
META: ran handlers
Using module file /usr/lib/python2.7/site-packages/ansible/modules/windows/win_ping.ps1
Pipelining is enabled.
<172.24.0.22> ESTABLISH WINRM CONNECTION FOR USER: LOCAL_ANSIBLE_SVC on PORT 5986 TO 172.24.0.22
172.24.0.22 | FAILED! => {
    "msg": "the connection attempt timed out"

   
   
ansible@host01:~/playbooks$ telnet 172.24.0.22 5986
Trying 172.24.0.22...
Connected to 172.24.0.22.
Escape character is '^]'.

Labels (4)
0 Kudos
0 Replies
Join the discussion
You must log in to join this conversation.