# repo error from ansible target - amazon

**URL:** <https://forum.ansible.com/t/repo-error-from-ansible-target-amazon/30140>\
**Category:** Ansible Project\
**Created:** [April 17, 2019, 11:22pm UTC](https://forum.ansible.com/t/repo-error-from-ansible-target-amazon/30140 "2019-04-17T23:22:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AQ1](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@AQ1](https://forum.ansible.com/u/AQ1)\
**Post date:** [April 17, 2019, 11:22pm UTC](https://forum.ansible.com/t/repo-error-from-ansible-target-amazon/30140/1 "2019-04-17T23:22:26Z")

</div>

[test@ip-172-31-1-143 ~]$ ansible webservers -m yum -a ‘name=pyhton-pip state=present’ -u test --become --ask-become-pass  
SUDO password:  
172.31.13.61 | FAILED! =\> {  
“changed”: false,  
“failed”: true,  
“msg”: “Failure talking to yum: failure: repodata/repomd.xml from amzn2extra-epel-debuginfo: [Errno 256] No more mirrors to try.\n[http://amazonlinux.ap-southeast-2.amazonaws.com/2/extras/epel/7.11/debuginfo/x86\_64/b53de08042d71c98ad809672a924f0906ffce47fa14135f15d8d8c792bf84d75/repodata/repomd.xml:](http://amazonlinux.ap-southeast-2.amazonaws.com/2/extras/epel/7.11/debuginfo/x86_64/b53de08042d71c98ad809672a924f0906ffce47fa14135f15d8d8c792bf84d75/repodata/repomd.xml:) [Errno 14] HTTP Error 403 - Forbidden”

-----------------------------target (webserver)---------------------------

[test@ip-172-31-13-61 ~]$ yum repolist all  
Loaded plugins: extras\_suggestions, langpacks, priorities, update-motd  
[http://amazonlinux.ap-southeast-2.amazonaws.com/2/extras/epel/7.11/debuginfo/x86\_64/b53de08042d71c98ad809672a924f0906ffce47fa14135f15d8d8c792bf84d75/repodata/repomd.xml:](http://amazonlinux.ap-southeast-2.amazonaws.com/2/extras/epel/7.11/debuginfo/x86_64/b53de08042d71c98ad809672a924f0906ffce47fa14135f15d8d8c792bf84d75/repodata/repomd.xml:) [Errno 14] HTTP Error 403 - Forbidden  
Trying other mirror.  
[http://amazonlinux.ap-southeast-2.amazonaws.com/2/extras/epel/7.11/debuginfo/x86\_64/b53de08042d71c98ad809672a924f0906ffce47fa14135f15d8d8c792bf84d75/repodata/repomd.xml:](http://amazonlinux.ap-southeast-2.amazonaws.com/2/extras/epel/7.11/debuginfo/x86_64/b53de08042d71c98ad809672a924f0906ffce47fa14135f15d8d8c792bf84d75/repodata/repomd.xml:) [Errno 14] HTTP Error 403 - Forbidden  
Trying other mirror.  
[https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm/repodata/repomd.xml:](https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm/repodata/repomd.xml:) [Errno 14] HTTPS Error 404 - Not Found  
Trying other mirror.  
repo id repo name status  
amzn2-core/2/x86\_64 Amazon Linux 2 core repository enabled: 16,458  
amzn2-core-debuginfo/2/x86\_64 Amazon Linux 2 core repository - debuginfo packages enabled: 3,280  
amzn2-core-source/2 Amazon Linux 2 core repository - source packages enabled: 4,494  
amzn2extra-docker/2/x86\_64 Amazon Extras repo for docker enabled: 14  
amzn2extra-docker-debuginfo/2/x86\_64 Amazon Extras debuginfo repo for docker enabled: 14  
amzn2extra-docker-source/2 Amazon Extras source repo for docker enabled: 14  
amzn2extra-epel/2/x86\_64 Amazon Extras repo for epel enabled: 1  
amzn2extra-epel-debuginfo/2/x86\_64 Amazon Extras debuginfo repo for epel enabled: 0  
amzn2extra-epel-source/2 Amazon Extras source repo for epel enabled: 1  
epel epelyumrepo enabled: 13,051  
epel-debuginfo/x86\_64 Extra Packages for Enterprise Linux 7 - x86\_64 - Debug enabled: 2,881  
epel-source/x86\_64 Extra Packages for Enterprise Linux 7 - x86\_64 - Source enabled: 6,913  
epel-testing/x86\_64 Extra Packages for Enterprise Linux 7 - Testing - x86\_64 enabled: 927  
epel-testing-debuginfo/x86\_64 Extra Packages for Enterprise Linux 7 - Testing - x86\_64 - Debug enabled: 111  
epel-testing-source/x86\_64 Extra Packages for Enterprise Linux 7 - Testing - x86\_64 - Source enabled: 339  
mysql-cluster-7.5-community/x86\_64 MySQL Cluster 7.5 Community enabled: 145  
mysql-cluster-7.5-community-source MySQL Cluster 7.5 Community - Source enabled: 8  
mysql-cluster-7.6-community/x86\_64 MySQL Cluster 7.6 Community enabled: 144  
mysql-cluster-7.6-community-source MySQL Cluster 7.6 Community - Source enabled: 8  
mysql-connectors-community/x86\_64 MySQL Connectors Community enabled: 95  
mysql-connectors-community-source MySQL Connectors Community - Source enabled: 46  
mysql-tools-community/x86\_64 MySQL Tools Community enabled: 84  
mysql-tools-community-source MySQL Tools Community - Source enabled: 42  
mysql-tools-preview/x86\_64 MySQL Tools Preview enabled: 13  
mysql-tools-preview-source MySQL Tools Preview - Source enabled: 6  
mysql55-community/x86\_64 MySQL 5.5 Community Server enabled: 427  
mysql55-community-source MySQL 5.5 Community Server - Source enabled: 28  
mysql56-community/x86\_64 MySQL 5.6 Community Server enabled: 446  
mysql56-community-source MySQL 5.6 Community Server - Source enabled: 29  
mysql57-community/x86\_64 MySQL 5.7 Community Server enabled: 327  
mysql57-community-source MySQL 5.7 Community Server - Source enabled: 17  
mysql80-community/x86\_64 MySQL 8.0 Community Server enabled: 82  
mysql80-community-source MySQL 8.0 Community Server - Source enabled: 5  
repolist: 50,450  
[test@ip-172-31-13-61 ~]$

---

<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:** [April 17, 2019, 11:52pm UTC](https://forum.ansible.com/t/repo-error-from-ansible-target-amazon/30140/2 "2019-04-17T23:52:24Z")

</div>

you have python-pip misspelled.

---

<div class="post-metadata">

**Author:** ![AQ1](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@AQ1](https://forum.ansible.com/u/AQ1)\
**Post date:** [April 17, 2019, 11:55pm UTC](https://forum.ansible.com/t/repo-error-from-ansible-target-amazon/30140/3 "2019-04-17T23:55:27Z")

</div>

corrected spelling still the same output by ansible

[test@ip-172-31-1-143 ~]$ ansible webservers -m yum -a ‘name=python-pip state=present’ -u test --become --ask-become-pass  
SUDO password:  
172.31.13.61 | FAILED! =\> {  
“changed”: false,  
“failed”: true,  
“msg”: “Failure talking to yum: failure: repodata/repomd.xml from amzn2extra-epel-debuginfo: [Errno 256] No more mirrors to try.\n[http://amazonlinux.ap-southeast-2.amazonaws.com/2/extras/epel/7.11/debuginfo/x86\_64/b53de08042d71c98ad809672a924f0906ffce47fa14135f15d8d8c792bf84d75/repodata/repomd.xml:](http://amazonlinux.ap-southeast-2.amazonaws.com/2/extras/epel/7.11/debuginfo/x86_64/b53de08042d71c98ad809672a924f0906ffce47fa14135f15d8d8c792bf84d75/repodata/repomd.xml:) [Errno 14] HTTP Error 403 - Forbidden”

---

<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:** [April 18, 2019, 12:11am UTC](https://forum.ansible.com/t/repo-error-from-ansible-target-amazon/30140/4 "2019-04-18T00:11:38Z")

</div>

this is not an ansible issue. Your yum repository is broken [Errno 14] HTTP Error 403 - Forbidden"

---

<div class="post-metadata">

**Author:** ![AQ1](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@AQ1](https://forum.ansible.com/u/AQ1)\
**Post date:** [April 18, 2019, 12:21am UTC](https://forum.ansible.com/t/repo-error-from-ansible-target-amazon/30140/5 "2019-04-18T00:21:58Z")

</div>

how to fix a broken yum repository? thnx

---

<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:** [April 18, 2019, 12:24am UTC](https://forum.ansible.com/t/repo-error-from-ansible-target-amazon/30140/6 "2019-04-18T00:24:18Z")

</div>

[http://lmgtfy.com/?q=how+to+fix+broken+yum+repository](http://lmgtfy.com/?q=how+to+fix+broken+yum+repository)
