# Can’t reach a server?

**URL:** <https://forum.ansible.com/t/can-t-reach-a-server/31071>\
**Category:** Ansible Project\
**Created:** [August 19, 2019, 1:38pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071 "2019-08-19T13:38:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Eggleston](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Post date:** [August 19, 2019, 1:38pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/1 "2019-08-19T13:38:40Z")

</div>

What’s happening here? I can reach the server over ssh, but ansible can’t? I’m testing a provisioning play. I can ssh into the box with “ssh root@box” but the command “ansible-playbook -vvv -u root -k —limit box yum.yml” says “msg”: “SSH Error:data could not be sent to remote host \”box\”. Make sure this host can be reached over ssh”.

Odd. 🙂

What’s happening and how to fix this?

Mike

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [August 19, 2019, 1:40pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/2 "2019-08-19T13:40:23Z")

</div>

Mike,

If you are provisioning a VM, usually you require another play to connect to the host. Can you share the playbook/role?

---

<div class="post-metadata">

**Author:** ![Mike\_Eggleston](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Post date:** [August 19, 2019, 1:54pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/3 "2019-08-19T13:54:40Z")

</div>

(Doing this on my phone is cumbersome.) 🙂

Hers the playbook:

[meggle1@dvlnx108 playbooks]$ cat yum.yml

# $Id$

# $Log$

# use the package manager (yum/apt-get) to update all installed packages

# :!ansible-playbook -u root -k --limit dvlnx115 --syntax-check %

# :!ansible-playbook -u root -k --limit dvlnx115 %

# :!ansible-playbook -vvv -u root -k --limit dvlnx115 %

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [August 19, 2019, 2:02pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/4 "2019-08-19T14:02:38Z")

</div>

Mike,

You should use the yum/apt modules instead of shell/command do what you are trying to do. Also what version of ansible are you using? You should also use the OS conditionals to run the tasks depending on the OS. [https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_conditionals.html#commonly-used-facts](https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html#commonly-used-facts) [https://docs.ansible.com/ansible/latest/modules/yum\_module.html](https://docs.ansible.com/ansible/latest/modules/yum_module.html) [https://docs.ansible.com/ansible/latest/modules/apt\_module.html](https://docs.ansible.com/ansible/latest/modules/apt_module.html). you can also use [https://docs.ansible.com/ansible/latest/modules/package\_module.html](https://docs.ansible.com/ansible/latest/modules/package_module.html) for generic package management. If you are using at least ansible 2.7 use the reboot [https://docs.ansible.com/ansible/latest/modules/reboot\_module.html](https://docs.ansible.com/ansible/latest/modules/reboot_module.html) since it auto connects back.

---

<div class="post-metadata">

**Author:** ![Mike\_Eggleston](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Post date:** [August 19, 2019, 2:09pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/5 "2019-08-19T14:09:50Z")

</div>

I first used “package” and ansible complained of a missing interpreter line. That’s why I switched to “command”.

I’m going between two CentIS boxes.

All this doesn’t explain why I can get into the box over ssh, but ansible cant get into the box.

Mike

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [August 19, 2019, 2:12pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/6 "2019-08-19T14:12:00Z")

</div>

can you go into more details about missing interpreter line? what ansible version are you using? in what part is ansible unable to connect? I’m assuming after the shutdown -r part?

---

<div class="post-metadata">

**Author:** ![Zolvaring](https://avatars.discourse-cdn.com/v4/letter/z/ce73a5/32.png) [@Zolvaring](https://forum.ansible.com/u/Zolvaring)\
**Post date:** [August 19, 2019, 2:20pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/7 "2019-08-19T14:20:17Z")

</div>

Do you have the host your connecting Ansible to configured in inventory? If you just pass the host as a limit but it's not in inventory Ansible won't know what you mean, try "-i "target-host, --limit "target-host" to simulate an inventory file or use an inventory file and put the host in question inside (assuming you haven't already just a guess)

---

<div class="post-metadata">

**Author:** ![Mike\_Eggleston](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Post date:** [August 19, 2019, 2:21pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/8 "2019-08-19T14:21:35Z")

</div>

I changed the yum to an uptime. The connection issue is in the handler.

Here’s the interpreter message:

[meggle1@dvlnx108 playbooks]$ ansible-playbook -vvv -u root -k --limit dvlnx115 y.yml

ansible-playbook 2.4.2.0

config file = /home/meggle1/src/ansible/ansible.cfg

configured module search path = [u’/home/meggle1/src/ansible/playbooks’]

ansible python module location = /usr/lib/python2.7/site-packages/ansible

executable location = /usr/bin/ansible-playbook

python version = 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

Using /home/meggle1/src/ansible/ansible.cfg as config file

SSH password:

Parsed /home/meggle1/src/ansible/newinventory inventory source with ini plugin

PLAYBOOK: y.yml \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

1 plays in y.yml

PLAY [all] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py

ESTABLISH SSH CONNECTION FOR USER: root

SSH: EXEC sshpass -d13 ssh -o ConnectTimeout=5 -o ServerAliveInterval=10 -o ServerAliveCountMax=720 -o StrictHostKeyChecking=ask -o User=root -o ConnectTimeout=10 dvlnx115 ‘/bin/sh -c ‘"’"’/usr/bin/python && sleep 0’“'”‘’

(0, ‘\n{“invocation”: {“module\_args”: {“filter”: “\*”, “gather\_subset”: [“all”], “fact\_path”: “/etc/ansible/facts.d”, “gather\_timeout”: 10}}, “ansible\_facts”: {“ansible\_product\_serial”: “VMware-42 12 36 76 5b 94 86 03-e1 82 dc f3 6e e3 b4 ab”, “ansible\_form\_factor”: “Other”, “ansible\_distribution\_file\_parsed”: true, “ansible\_fips”: false, “ansible\_service\_mgr”: “systemd”, “ansible\_user\_id”: “root”, “ansible\_selinux\_python\_present”: true, “ansible\_userspace\_bits”: “64”, “ansible\_ssh\_host\_key\_rsa\_public”: “AAAAB3NzaC1yc2EAAAADAQABAAABAQC+4PWY9xn7bJxcYd/uWpEmx2RM4ikwPdYW5zXVWFpNKdkjDg8Fz6zEtXbaccVZIfuWM6aJpvgIILRfoI9rjCiCp60oxQh3luE9K3liCqZD4ue6uc8P2KPT7AHq3AQzyFHV01hBpBNWXYFAVG6YrK8cRWxPqc1V7oFpHXwmzQpy5Mq5PdHF6WFbCX2VgvQETkSYrnGJ5ffTZv1j9KmHaurfbPGtd39L78DU60vrRlJgybMc0bNuipJreFibCbiYGwEYZipXp9yWiWVDItlhfBnrADDNEQgaU1UNrHaITNpJ6cz0N1t/QdGcysOv2GBuVGL6bff7JIvNLZdDjFAGJnxz”, “gather\_subset”: [“all”], “ansible\_real\_user\_id”: 0, “ansible\_architecture”: “x86\_64”, “ansible\_local”: {}, “ansible\_distribution\_version”: “7.6.1810”, “ansible\_domain”: “[firstcash.com](http://firstcash.com/)”, “ansible\_distribution\_file\_path”: “/etc/redhat-release”, “ansible\_user\_shell”: “/bin/bash”, “ansible\_date\_time”: {“weekday\_number”: “1”, “iso8601\_basic\_short”: “20190819T091701”, “tz”: “CDT”, “weeknumber”: “33”, “hour”: “09”, “year”: “2019”, “minute”: “17”, “tz\_offset”: “-0500”, “month”: “08”, “epoch”: “1566224221”, “iso8601\_micro”: “2019-08-19T14:17:01.672768Z”, “weekday”: “Monday”, “time”: “09:17:01”, “date”: “2019-08-19”, “iso8601”: “2019-08-19T14:17:01Z”, “day”: “19”, “iso8601\_basic”: “20190819T091701672648”, “second”: “01”}, “ansible\_ssh\_host\_key\_ed25519\_public”: “AAAAC3NzaC1lZDI1NTE5AAAAIEN2FHch8bOc4L0p+r9e5aVVlhJkkWZtxWxaraxNLfVe”, “ansible\_processor\_cores”: 2, “ansible\_virtualization\_role”: “guest”, “ansible\_distribution\_file\_variety”: “RedHat”, “ansible\_env”: {“LANG”: “en\_US.UTF-8”, “SHELL”: “/bin/bash”, “XDG\_RUNTIME\_DIR”: “/run/user/0”, “SHLVL”: “2”, “SSH\_CLIENT”: “10.50.118.247 37170 22”, “LESSOPEN”: “||/usr/bin/lesspipe.sh %s”, “PATH”: “/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin”, “PWD”: “/root”, “SELINUX\_ROLE\_REQUESTED”: “”, “SELINUX\_USE\_CURRENT\_RANGE”: “”, “LOGNAME”: “root”, “USER”: “root”, “MAIL”: “/var/mail/root”, “HOME”: “/root”, “SELINUX\_LEVEL\_REQUESTED”: “”, “XDG\_SESSION\_ID”: “1”, “\_”: “/usr/bin/python”, “SSH\_CONNECTION”: “10.50.118.247 37170 10.50.118.245 22”}, “ansible\_effective\_group\_id”: 0, “ansible\_bios\_version”: “6.00”, “ansible\_processor”: [“0”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz”, “1”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz”, “2”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz”, “3”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz”], “ansible\_virtualization\_type”: “VMware”, “ansible\_lo”: {“features”: {“tx\_checksum\_ipv4”: “off [fixed]”, “generic\_receive\_offload”: “on”, “tx\_checksum\_ipv6”: “off [fixed]”, “tx\_scatter\_gather\_fraglist”: “on [fixed]”, “rx\_all”: “off [fixed]”, “highdma”: “on [fixed]”, “rx\_fcs”: “off [fixed]”, “tx\_lockless”: “on [fixed]”, “tx\_tcp\_ecn\_segmentation”: “on”, “rx\_udp\_tunnel\_port\_offload”: “off [fixed]”, “tx\_tcp6\_segmentation”: “on”, “tx\_gso\_robust”: “off [fixed]”, “tx\_ipip\_segmentation”: “off [fixed]”, “tx\_tcp\_mangleid\_segmentation”: “on”, “tx\_checksumming”: “on”, “vlan\_challenged”: “on [fixed]”, “loopback”: “on [fixed]”, “fcoe\_mtu”: “off [fixed]”, “scatter\_gather”: “on”, “tx\_checksum\_sctp”: “on [fixed]”, “tx\_vlan\_stag\_hw\_insert”: “off [fixed]”, “rx\_vlan\_stag\_hw\_parse”: “off [fixed]”, “tx\_gso\_partial”: “off [fixed]”, “rx\_gro\_hw”: “off [fixed]”, “rx\_vlan\_stag\_filter”: “off [fixed]”, “large\_receive\_offload”: “off [fixed]”, “tx\_scatter\_gather”: “on [fixed]”, “rx\_checksumming”: “on [fixed]”, “tx\_tcp\_segmentation”: “on”, “netns\_local”: “on [fixed]”, “busy\_poll”: “off [fixed]”, “generic\_segmentation\_offload”: “on”, “tx\_udp\_tnl\_segmentation”: “off [fixed]”, “tcp\_segmentation\_offload”: “on”, “l2\_fwd\_offload”: “off [fixed]”, “rx\_vlan\_offload”: “off [fixed]”, “ntuple\_filters”: “off [fixed]”, “tx\_gre\_csum\_segmentation”: “off [fixed]”, “tx\_nocache\_copy”: “off [fixed]”, “tx\_udp\_tnl\_csum\_segmentation”: “off [fixed]”, “udp\_fragmentation\_offload”: “on”, “tx\_sctp\_segmentation”: “on”, “tx\_sit\_segmentation”: “off [fixed]”, “tx\_checksum\_fcoe\_crc”: “off [fixed]”, “hw\_tc\_offload”: “off [fixed]”, “tx\_checksum\_ip\_generic”: “on [fixed]”, “tx\_fcoe\_segmentation”: “off [fixed]”, “rx\_vlan\_filter”: “off [fixed]”, “tx\_vlan\_offload”: “off [fixed]”, “receive\_hashing”: “off [fixed]”, “tx\_gre\_segmentation”: “off [fixed]”}, “hw\_timestamp\_filters”: , “mtu”: 65536, “device”: “lo”, “promisc”: false, “timestamping”: [“rx\_software”, “software”], “ipv4”: {“broadcast”: “host”, “netmask”: “255.0.0.0”, “network”: “127.0.0.0”, “address”: “127.0.0.1”}, “ipv6”: [{“scope”: “host”, “prefix”: “128”, “address”: “::1”}], “active”: true, “type”: “loopback”}, “ansible\_memtotal\_mb”: 3789, “ansible\_ssh\_host\_key\_ecdsa\_public”: “AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJu+faA7+4FvAk/7NM6LMiVmQT4VZywj6yPNPeuFh2bIMk4av+JfbhgFvQyP79gWVnspOxadHBZOpCaEe8G2kDc=”, “ansible\_device\_links”: {“masters”: {“sda2”: [“dm-0”, “dm-1”]}, “labels”: {}, “ids”: {“sr0”: [“ata-VMware\_Virtual\_IDE\_CDROM\_Drive\_10000000000000000001”], “sda2”: [“lvm-pv-uuid-2kUJsQ-G7BV-MbNW-BrZW-WL0f-mjrL-2ZkLq0”], “dm-0”: [“dm-name-centos-root”, “dm-uuid-LVM-pvPziInAe11HFpC2H3WAcqx4LVHE2KjyS28LXugumw14mfP87MkO28uru0rbGvzC”], “dm-1”: [“dm-name-centos-swap”, “dm-uuid-LVM-pvPziInAe11HFpC2H3WAcqx4LVHE2KjyHwjjedjNjoG0fzlK58hdWGwz6V6BuN2z”]}, “uuids”: {“sda1”: [“ac6a9318-a9b8-411c-9a1b-000804f1ad82”], “dm-0”: [“10f7278c-1721-4553-a9ee-d8a4ffdb96d7”], “dm-1”: [“17cf1614-d822-41af-bbd2-589464afc51c”]}}, “ansible\_default\_ipv4”: {“macaddress”: “00:50:56:92:fd:33”, “network”: “10.50.118.0”, “mtu”: 1500, “broadcast”: “10.50.118.255”, “alias”: “ens160”, “netmask”: “255.255.255.0”, “address”: “10.50.118.245”, “interface”: “ens160”, “type”: “ether”, “gateway”: “10.50.118.1”}, “ansible\_swapfree\_mb”: 1639, “ansible\_default\_ipv6”: {}, “ansible\_distribution\_release”: “Core”, “ansible\_system\_vendor”: “VMware, Inc.”, “ansible\_apparmor”: {“status”: “disabled”}, “ansible\_cmdline”: {“LANG”: “en\_US.UTF-8”, “BOOT\_IMAGE”: “/vmlinuz-3.10.0-957.27.2.el7.x86\_64”, “quiet”: true, “rhgb”: true, “rd.lvm.lv”: “centos/swap”, “crashkernel”: “auto”, “ro”: true, “root”: “/dev/mapper/centos-root”}, “ansible\_effective\_user\_id”: 0, “ansible\_user\_gid”: 0, “ansible\_selinux”: {“status”: “enabled”, “policyvers”: 31, “type”: “targeted”, “mode”: “enforcing”, “config\_mode”: “enforcing”}, “ansible\_product\_version”: “None”, “ansible\_os\_family”: “RedHat”, “ansible\_userspace\_architecture”: “x86\_64”, “ansible\_product\_uuid”: “42123676-5B94-8603-E182-DCF36EE3B4AB”, “ansible\_system”: “Linux”, “ansible\_pkg\_mgr”: “yum”, “ansible\_memfree\_mb”: 3464, “ansible\_devices”: {“fd0”: {“scheduler\_mode”: “deadline”, “rotational”: “1”, “vendor”: null, “sectors”: “8”, “links”: {“masters”: , “labels”: , “ids”: , “uuids”: }, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “1”, “support\_discard”: “0”, “model”: null, “partitions”: {}, “holders”: , “size”: “4.00 KB”}, “sr0”: {“scheduler\_mode”: “deadline”, “rotational”: “1”, “vendor”: “NECVMWar”, “sectors”: “2097151”, “links”: {“masters”: , “labels”: , “ids”: [“ata-VMware\_Virtual\_IDE\_CDROM\_Drive\_10000000000000000001”], “uuids”: }, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)”, “sectorsize”: “512”, “removable”: “1”, “support\_discard”: “0”, “model”: “VMware IDE CDR10”, “partitions”: {}, “holders”: , “size”: “1024.00 MB”}, “sda”: {“scheduler\_mode”: “deadline”, “rotational”: “1”, “vendor”: “VMware”, “sectors”: “33554432”, “links”: {“masters”: , “labels”: , “ids”: , “uuids”: }, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “0”, “model”: “Virtual disk”, “partitions”: {“sda2”: {“sectorsize”: 512, “uuid”: null, “links”: {“masters”: [“dm-0”, “dm-1”], “labels”: , “ids”: [“lvm-pv-uuid-2kUJsQ-G7BV-MbNW-BrZW-WL0f-mjrL-2ZkLq0”], “uuids”: }, “sectors”: “31455232”, “start”: “2099200”, “holders”: [“centos-root”, “centos-swap”], “size”: “15.00 GB”}, “sda1”: {“sectorsize”: 512, “uuid”: “ac6a9318-a9b8-411c-9a1b-000804f1ad82”, “links”: {“masters”: , “labels”: , “ids”: , “uuids”: [“ac6a9318-a9b8-411c-9a1b-000804f1ad82”]}, “sectors”: “2097152”, “start”: “2048”, “holders”: , “size”: “1.00 GB”}}, “holders”: , “size”: “16.00 GB”}, “dm-0”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “28090368”, “links”: {“masters”: , “labels”: , “ids”: [“dm-name-centos-root”, “dm-uuid-LVM-pvPziInAe11HFpC2H3WAcqx4LVHE2KjyS28LXugumw14mfP87MkO28uru0rbGvzC”], “uuids”: [“10f7278c-1721-4553-a9ee-d8a4ffdb96d7”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “0”, “model”: null, “partitions”: {}, “holders”: , “size”: “13.39 GB”}, “dm-1”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “3358720”, “links”: {“masters”: , “labels”: , “ids”: [“dm-name-centos-swap”, “dm-uuid-LVM-pvPziInAe11HFpC2H3WAcqx4LVHE2KjyHwjjedjNjoG0fzlK58hdWGwz6V6BuN2z”], “uuids”: [“17cf1614-d822-41af-bbd2-589464afc51c”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “0”, “model”: null, “partitions”: {}, “holders”: , “size”: “1.60 GB”}}, “ansible\_user\_uid”: 0, “ansible\_lvm”: {“pvs”: {“/dev/sda2”: {“free\_g”: “0”, “size\_g”: “15.00”, “vg”: “centos”}}, “lvs”: {“root”: {“size\_g”: “13.39”, “vg”: “centos”}, “swap”: {“size\_g”: “1.60”, “vg”: “centos”}}, “vgs”: {“centos”: {“free\_g”: “0”, “size\_g”: “15.00”, “num\_lvs”: “2”, “num\_pvs”: “1”}}}, “ansible\_distribution”: “CentOS”, “ansible\_user\_dir”: “/root”, “ansible\_dns”: {“nameservers”: [“10.50.117.39”, “10.50.116.123”], “search”: [“[firstcash.com](http://firstcash.com/)”, “[casham.com](http://casham.com/)”]}, “ansible\_distribution\_major\_version”: “7”, “module\_setup”: true, “ansible\_processor\_count”: 2, “ansible\_hostname”: “dvnlx115”, “ansible\_processor\_vcpus”: 4, “ansible\_swaptotal\_mb”: 1639, “ansible\_lsb”: {}, “ansible\_real\_group\_id”: 0, “ansible\_bios\_date”: “09/21/2015”, “ansible\_ens160”: {“macaddress”: “00:50:56:92:fd:33”, “features”: {“tx\_checksum\_ipv4”: “off [fixed]”, “generic\_receive\_offload”: “on”, “tx\_checksum\_ipv6”: “off [fixed]”, “tx\_scatter\_gather\_fraglist”: “off [fixed]”, “rx\_all”: “off [fixed]”, “highdma”: “on”, “rx\_fcs”: “off [fixed]”, “tx\_lockless”: “off [fixed]”, “tx\_tcp\_ecn\_segmentation”: “off [fixed]”, “rx\_udp\_tunnel\_port\_offload”: “off [fixed]”, “tx\_tcp6\_segmentation”: “on”, “tx\_gso\_robust”: “off [fixed]”, “tx\_ipip\_segmentation”: “off [fixed]”, “tx\_tcp\_mangleid\_segmentation”: “off”, “tx\_checksumming”: “on”, “vlan\_challenged”: “off [fixed]”, “loopback”: “off [fixed]”, “fcoe\_mtu”: “off [fixed]”, “scatter\_gather”: “on”, “tx\_checksum\_sctp”: “off [fixed]”, “tx\_vlan\_stag\_hw\_insert”: “off [fixed]”, “rx\_vlan\_stag\_hw\_parse”: “off [fixed]”, “tx\_gso\_partial”: “off [fixed]”, “rx\_gro\_hw”: “off [fixed]”, “rx\_vlan\_stag\_filter”: “off [fixed]”, “large\_receive\_offload”: “on”, “tx\_scatter\_gather”: “on”, “rx\_checksumming”: “on”, “tx\_tcp\_segmentation”: “on”, “netns\_local”: “off [fixed]”, “busy\_poll”: “off [fixed]”, “generic\_segmentation\_offload”: “on”, “tx\_udp\_tnl\_segmentation”: “off [fixed]”, “tcp\_segmentation\_offload”: “on”, “l2\_fwd\_offload”: “off [fixed]”, “rx\_vlan\_offload”: “on”, “ntuple\_filters”: “off [fixed]”, “tx\_gre\_csum\_segmentation”: “off [fixed]”, “tx\_nocache\_copy”: “off”, “tx\_udp\_tnl\_csum\_segmentation”: “off [fixed]”, “udp\_fragmentation\_offload”: “off [fixed]”, “tx\_sctp\_segmentation”: “off [fixed]”, “tx\_sit\_segmentation”: “off [fixed]”, “tx\_checksum\_fcoe\_crc”: “off [fixed]”, “hw\_tc\_offload”: “off [fixed]”, “tx\_checksum\_ip\_generic”: “on”, “tx\_fcoe\_segmentation”: “off [fixed]”, “rx\_vlan\_filter”: “on [fixed]”, “tx\_vlan\_offload”: “on”, “receive\_hashing”: “on”, “tx\_gre\_segmentation”: “off [fixed]”}, “type”: “ether”, “pciid”: “0000:03:00.0”, “module”: “vmxnet3”, “mtu”: 1500, “device”: “ens160”, “promisc”: false, “timestamping”: [“rx\_software”, “software”], “ipv4”: {“broadcast”: “10.50.118.255”, “netmask”: “255.255.255.0”, “network”: “10.50.118.0”, “address”: “10.50.118.245”}, “ipv6”: [{“scope”: “link”, “prefix”: “64”, “address”: “fe80::250:56ff:fe92:fd33”}], “active”: true, “speed”: 10000, “hw\_timestamp\_filters”: }, “ansible\_all\_ipv6\_addresses”: [“fe80::250:56ff:fe92:fd33”], “ansible\_interfaces”: [“lo”, “ens160”], “ansible\_uptime\_seconds”: 250, “ansible\_machine\_id”: “3d3d3f08c37e439b8250e72612412f52”, “ansible\_kernel”: “3.10.0-957.27.2.el7.x86\_64”, “ansible\_user\_gecos”: “root”, “ansible\_system\_capabilities\_enforced”: “True”, “ansible\_python”: {“executable”: “/usr/bin/python”, “version”: {“micro”: 5, “major”: 2, “releaselevel”: “final”, “serial”: 0, “minor”: 7}, “type”: “CPython”, “has\_sslcontext”: true, “version\_info”: [2, 7, 5, “final”, 0]}, “ansible\_processor\_threads\_per\_core”: 1, “ansible\_fqdn”: “[dvnlx115.firstcash.com](http://dvnlx115.firstcash.com/)”, “ansible\_mounts”: [{“block\_used”: 478520, “uuid”: “10f7278c-1721-4553-a9ee-d8a4ffdb96d7”, “size\_total”: 14371782656, “block\_total”: 3508736, “mount”: “/”, “block\_available”: 3030216, “size\_available”: 12411764736, “fstype”: “xfs”, “inode\_total”: 7022592, “options”: “rw,seclabel,relatime,attr2,inode64,noquota”, “device”: “/dev/mapper/centos-root”, “inode\_used”: 70872, “block\_size”: 4096, “inode\_available”:6951720}, {“block\_used”: 46446, “uuid”: “ac6a9318-a9b8-411c-9a1b-000804f1ad82”, “size\_total”: 1063256064, “block\_total”: 259584, “mount”: “/boot”, “block\_available”: 213138, “size\_available”: 873013248, “fstype”: “xfs”, “inode\_total”: 524288, “options”: “rw,seclabel,relatime,attr2,inode64,noquota”, “device”: “/dev/sda1”, “inode\_used”: 336, “block\_size”: 4096, “inode\_available”: 523952}], “ansible\_memory\_mb”: {“real”: {“total”: 3789, “used”: 325, “free”: 3464}, “swap”: {“cached”: 0, “total”: 1639, “free”: 1639, “used”: 0}, “nocache”: {“used”: 209, “free”: 3580}}, “ansible\_nodename”: “[dvnlx115.firstcash.com](http://dvnlx115.firstcash.com/)”, “ansible\_product\_name”: “VMware Virtual Platform”, “ansible\_machine”: “x86\_64”, “ansible\_system\_capabilities”: [“cap\_chown”, “cap\_dac\_override”, “cap\_dac\_read\_search”, “cap\_fowner”, “cap\_fsetid”, “cap\_kill”, “cap\_setgid”, “cap\_setuid”, “cap\_setpcap”, “cap\_linux\_immutable”, “cap\_net\_bind\_service”, “cap\_net\_broadcast”, “cap\_net\_admin”, “cap\_net\_raw”, “cap\_ipc\_lock”, “cap\_ipc\_owner”, “cap\_sys\_module”, “cap\_sys\_rawio”, “cap\_sys\_chroot”, “cap\_sys\_ptrace”, “cap\_sys\_pacct”, “cap\_sys\_admin”, “cap\_sys\_boot”, “cap\_sys\_nice”, “cap\_sys\_resource”, “cap\_sys\_time”, “cap\_sys\_tty\_config”, “cap\_mknod”, “cap\_lease”, “cap\_audit\_write”, “cap\_audit\_control”, “cap\_setfcap”, “cap\_mac\_override”, “cap\_mac\_admin”, “cap\_syslog”, “35”, “36+ep”], “ansible\_all\_ipv4\_addresses”: [“10.50.118.245”], “ansible\_python\_version”: “2.7.5”}}\n’, ‘’)

ok: [dvlnx115]

META: ran handlers

TASK [update all packages] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

task path: /home/meggle1/src/ansible/playbooks/y.yml:13

Using module file /home/meggle1/src/ansible/playbooks/yum.retry

fatal: [dvlnx115]: FAILED! =\> {

“msg”: “module (yum) is missing interpreter line”

}

…ignoring

META: ran handlers

META: ran handlers

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

dvlnx115 : ok=2 changed=0 unreachable=0 failed=0

Mike

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [August 19, 2019, 2:23pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/9 "2019-08-19T14:23:34Z")

</div>

Before we go more into dept, I suggest you upgrade ansible versions to either 2.7 or 2.8. Ansible version 2.4 is EOL. It would be harder to troubleshoot this.

---

<div class="post-metadata">

**Author:** ![vbotka](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/vbotka/32/359_2.png) [@vbotka](https://forum.ansible.com/u/vbotka)\
**Post date:** [August 19, 2019, 2:25pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/10 "2019-08-19T14:25:33Z")

</div>

Hi!

---

<div class="post-metadata">

**Author:** ![Mike\_Eggleston](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Post date:** [August 19, 2019, 2:44pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/11 "2019-08-19T14:44:17Z")

</div>

[root@dvlnx108 ~]# rpm -qi ansible

Name : ansible

Version : 2.4.2.0

Release : 2.el7

Architecture: noarch

Install Date: Mon 29 Jul 2019 02:24:00 PM CDT

Group : Development/Libraries

Size : 40059005

License : GPLv3+

Signature : RSA/SHA256, Mon 29 Jan 2018 03:51:53 PM CST, Key ID 24c6a8a7f4a80eb5

Source RPM : ansible-2.4.2.0-2.el7.src.rpm

Build Date : Mon 29 Jan 2018 02:16:59 PM CST

Build Host : [x86\_64\_01.bsys.centos.org](http://x86_64_01.bsys.centos.org/)

Relocations : (not relocatable)

Packager : CentOS BuildSystem \<[http://bugs.centos.org](http://bugs.centos.org/)\>

Vendor : CentOS

URL : [http://ansible.com](http://ansible.com/)

Summary : SSH-based configuration management, deployment, and task execution system

Description :

Ansible is a radically simple model-driven configuration management,

multi-node deployment, and remote task execution system. Ansible works

over SSH and does not require any software or daemons to be installed

on remote nodes. Extension modules can be written in any language and

are transferred to managed machines automatically.

This is the latest RPM available in the CentOS repository. Is there a latest RPM available?

Mike

---

<div class="post-metadata">

**Author:** ![Mike\_Eggleston](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Post date:** [August 19, 2019, 2:46pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/12 "2019-08-19T14:46:55Z")

</div>

Found the ROM on the ansible site. Installing now.

Mike

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [August 19, 2019, 2:48pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/13 "2019-08-19T14:48:14Z")

</div>

Please look at [https://docs.ansible.com/ansible/latest/installation\_guide/intro\_installation.html](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html). You can install the RPM from ansible’s site or make sure your centos installation is updated to latest and have access to the correct repository EX. EPEL.

---

<div class="post-metadata">

**Author:** ![Mike\_Eggleston](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Post date:** [August 19, 2019, 2:54pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/14 "2019-08-19T14:54:37Z")

</div>

[meggle1@dvlnx108 playbooks]$ rpm -qi ansible

Name : ansible

Version : 2.8.4

Release : 1.el7.ans

Architecture: noarch

Install Date: Mon 19 Aug 2019 09:49:52 AM CDT

Group : Development/Libraries

Size : 87766638

License : GPLv3+

Signature : RSA/SHA1, Thu 15 Aug 2019 06:22:15 PM CDT, Key ID b84e339c442667a9

Source RPM : ansible-2.8.4-1.el7.ans.src.rpm

Build Date : Thu 15 Aug 2019 06:21:07 PM CDT

Build Host : jenkins-jnlp-agent-dp4wx

Relocations : (not relocatable)

URL : [https://www.ansible.com](https://www.ansible.com/)

Summary : SSH-based application deployment, configuration management, and IT orchestration platform

Description :

Ansible is a radically simple model-driven configuration management,

multi-node deployment, and orchestration engine. Ansible works

over SSH and does not require any software or daemons to be installed

on remote nodes. Extension modules can be written in any language and

are transferred to managed machines automatically.

[meggle1@dvlnx108 playbooks]$ cat y.yml

# $Id$

# $Log$

# use the package manager (yum/apt-get) to update all installed packages

# :!ansible-playbook -u root -k --limit dvlnx115 --syntax-check %

# :!ansible-playbook -u root -k --limit dvlnx115 %

# :!ansible-playbook -vvv -u root -k --limit dvlnx115 %

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [August 19, 2019, 3:03pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/15 "2019-08-19T15:03:57Z")

</div>

what OS and version are you running on the controller and the target node?

---

<div class="post-metadata">

**Author:** ![Mike\_Eggleston](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Post date:** [August 19, 2019, 3:15pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/16 "2019-08-19T15:15:03Z")

</div>

Here’s what I’m working with:

[meggle1@dvlnx108 playbooks]$ cat /etc/os-release

NAME=“CentOS Linux”

VERSION=“7 (Core)”

ID=“centos”

ID\_LIKE=“rhel fedora”

VERSION\_ID=“7”

PRETTY\_NAME=“CentOS Linux 7 (Core)”

ANSI\_COLOR=“0;31”

CPE\_NAME=“cpe:/o:centos:centos:7”

HOME\_URL=“[https://www.centos.org/](https://www.centos.org/)”

BUG\_REPORT\_URL=“[https://bugs.centos.org/](https://bugs.centos.org/)”

CENTOS\_MANTISBT\_PROJECT=“CentOS-7”

CENTOS\_MANTISBT\_PROJECT\_VERSION=“7”

REDHAT\_SUPPORT\_PRODUCT=“centos”

REDHAT\_SUPPORT\_PRODUCT\_VERSION=“7”

[meggle1@dvlnx108 playbooks]$ ssh root@dvlnx115 cat /etc/os-release

root@dvlnx115’s password:

NAME=“CentOS Linux”

VERSION=“7 (Core)”

ID=“centos”

ID\_LIKE=“rhel fedora”

VERSION\_ID=“7”

PRETTY\_NAME=“CentOS Linux 7 (Core)”

ANSI\_COLOR=“0;31”

CPE\_NAME=“cpe:/o:centos:centos:7”

HOME\_URL=“[https://www.centos.org/](https://www.centos.org/)”

BUG\_REPORT\_URL=“[https://bugs.centos.org/](https://bugs.centos.org/)”

CENTOS\_MANTISBT\_PROJECT=“CentOS-7”

CENTOS\_MANTISBT\_PROJECT\_VERSION=“7”

REDHAT\_SUPPORT\_PRODUCT=“centos”

REDHAT\_SUPPORT\_PRODUCT\_VERSION=“7”

Mike

---

<div class="post-metadata">

**Author:** ![S\_C\_Rigler](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@S\_C\_Rigler](https://forum.ansible.com/u/S_C_Rigler)\
**Post date:** [August 19, 2019, 6:10pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/17 "2019-08-19T18:10:13Z")

</div>

Curious about this:

Using module file /home/meggle1/src/ansible/playbooks/yum.retry

Can you remove/rename that file?

---

<div class="post-metadata">

**Author:** ![Mike\_Eggleston](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Post date:** [August 19, 2019, 6:15pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/18 "2019-08-19T18:15:33Z")

</div>

The “\*.retry” file is a list of hosts that the playbook didn’t succeed for so you can “retry” the ansible command using “–limit file.retry” to only touch those hosts that previously failed.

Here’s the output after removin the “yum.retry” file:

[meggle1@dvlnx108 playbooks]$ ansible-playbook -u root -k --limit dvlnx115 yum.yml  
SSH password:

PLAY [all] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [dvlnx115]

TASK [checking for yum…] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [dvlnx115]

TASK [update all packages (yum)] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
[WARNING]: Consider using the yum module rather than running ‘yum’. If you need to use command because yum is insufficient you can add ‘warn: false’ to  
this command task or set ‘command\_warnings=False’ in ansible.cfg to get rid of this message.

changed: [dvlnx115]

TASK [update all packages (apt-get)] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
skipping: [dvlnx115]

RUNNING HANDLER [restart server] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [dvlnx115]: UNREACHABLE! =\> {“changed”: false, “msg”: “Data could not be sent to remote host "dvlnx115". Make sure this host can be reached over ssh: Connection to dvlnx115 closed by remote host.\r\n”, “unreachable”: true}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
dvlnx115 : ok=3 changed=1 unreachable=1 failed=0 skipped=1 rescued=0 ignored=0

Puzzling to me is that if ansible is using separate ssh commands, the ssh succeeds gathering facts and checking for yum, but fails on that last part.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [August 19, 2019, 6:49pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/19 "2019-08-19T18:49:15Z")

</div>

like I mentioned before, that task is failing because it does the reboot then tries to continue working but, can’t reach at all. I suggest you look at the links provided more and replace your tasks with those suggestions.

---

<div class="post-metadata">

**Author:** ![Mike\_Eggleston](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Post date:** [August 19, 2019, 6:56pm UTC](https://forum.ansible.com/t/can-t-reach-a-server/31071/20 "2019-08-19T18:56:44Z")

</div>

Mea cupla. You’re right. Duh. Of course ansible can’t reach the server because the server is booting.  
I’ll look at the other links.

Thanks.

Mike

[Next page](https://forum.ansible.com/t/can-t-reach-a-server/31071.md?page=2)
