# Help using yum-repository

**URL:** <https://forum.ansible.com/t/help-using-yum-repository/30500>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [June 5, 2019, 11:04pm UTC](https://forum.ansible.com/t/help-using-yum-repository/30500 "2019-06-05T23:04:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Evans](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Paul\_Evans](https://forum.ansible.com/u/Paul_Evans)\
**Post date:** [June 5, 2019, 11:04pm UTC](https://forum.ansible.com/t/help-using-yum-repository/30500/1 "2019-06-05T23:04:45Z")

</div>

Trying to install docker-ce. Manually, the commands to do this are:

**yum-config-manager --add-repo [https://download.docker.com/linux/centos/docker-ce.repo](https://download.docker.com/linux/centos/docker-ce.repo)**

Then

**yum install docker-ce -y**

works just fine. To replicate this in a playbook I am using

**- name: Set up Docker-ce**  
**yum\_repository:**  
**name: docker-ce**  
**description: Set up docker CE repo**  
**baseurl: [https://download.docker.com/linux/centos/docker-ce.repo](https://download.docker.com/linux/centos/docker-ce.repo)**

**- name: Install docker-ce**  
**yum:**  
**name: docker-ce**

This fails with the following …

TASK [docker : Set up Docker-ce] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

changed: [awx]

TASK [docker : Install docker-ce] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

fatal: [awx]: FAILED! =\> {“changed”: false, “msg”: “Failure talking to yum: failure: repodata/repomd.xml from docker-ce: [Errno 256] No more mirrors to try.\n[http://download.docker.com/linux/centos/docker-ce.repo/repodata/repomd.xml:](http://download.docker.com/linux/centos/docker-ce.repo/repodata/repomd.xml:) [Errno 14] HTTPS Error 404 - Not Found”}

to retry, use: --limit @/Users/paul/learning/ansible/retry/docker.retry

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

awx : ok=4 changed=2 unreachable=0 failed=1

Ansible failed to complete successfully. Any error output should be

visible above. Please fix these errors and try again.

Any pointers on what I am doing wrong, greatly appreciated.

---

<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:** [June 5, 2019, 11:08pm UTC](https://forum.ansible.com/t/help-using-yum-repository/30500/2 "2019-06-05T23:08:21Z")

</div>

is the baseurl. You don’t point to the .repo file but, the directory that has the repo files.

Jonathan Lozada De La Matta on mobile

– 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 . To post to this group, send email to . To view this discussion on the web visit . For more options, visit .
