# Ansible failing with 'No Route to Host' .

**URL:** <https://forum.ansible.com/t/ansible-failing-with-no-route-to-host/27684>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [June 1, 2018, 10:47am UTC](https://forum.ansible.com/t/ansible-failing-with-no-route-to-host/27684 "2018-06-01T10:47:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcG](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@MarcG](https://forum.ansible.com/u/MarcG)\
**Post date:** [June 1, 2018, 10:47am UTC](https://forum.ansible.com/t/ansible-failing-with-no-route-to-host/27684/1 "2018-06-01T10:47:35Z")

</div>

Hi,

I am running a playbook against a RHEL 7.4 image which sits behind a proxy. SELINUX and the firewall have been disabled. I am using Ansible 2.5.3

Here is the task

- name: Add Docker repository.

get\_url:

url: “{{ docker\_yum\_repo\_url }}”

dest: ‘/etc/yum.repos.d/docker-{{ docker\_edition }}.repo’

owner: root

group: root

mode: 0644

use\_proxy: yes

fatal: [10.40.12.136]: FAILED! =\> changed=false

invocation:

module\_args:

attributes: null

backup: null

checksum: ‘’

client\_cert: null

client\_key: null

content: null

delimiter: null

dest: /etc/yum.repos.d/docker-ce.repo

directory\_mode: null

follow: false

force: false

force\_basic\_auth: false

group: root

headers: null

http\_agent: ansible-httpget

mode: 420

owner: root

regexp: null

remote\_src: null

selevel: null

serole: null

setype: null

seuser: null

sha256sum: ‘’

src: null

timeout: 10

tmp\_dest: null

unsafe\_writes: null

url: [https://download.docker.com/linux/centos/docker-ce.repo](https://download.docker.com/linux/centos/docker-ce.repo)

url\_password: null

url\_username: null

use\_proxy: true

validate\_certs: true

msg: ‘Failed to connect to [download.docker.com](http://download.docker.com) at port 443: [Errno 113] No route to host’

If I ssh into the server I can wget or curl the file with no issue at all and as you can see the module is been configured to use my proxy.

Any ideas? this is driving me insane.

thanks.

---

<div class="post-metadata">

**Author:** ![Mohd\_Aftab](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@Mohd\_Aftab](https://forum.ansible.com/u/Mohd_Aftab)\
**Post date:** [June 1, 2018, 5:52pm UTC](https://forum.ansible.com/t/ansible-failing-with-no-route-to-host/27684/2 "2018-06-01T17:52:16Z")

</div>

This works for me
