repo error from ansible target - amazon

[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.\nhttp://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: [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: [Errno 14] HTTP Error 403 - Forbidden
Trying other mirror.
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 ~]$

you have python-pip misspelled.

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.\nhttp://amazonlinux.ap-southeast-2.amazonaws.com/2/extras/epel/7.11/debuginfo/x86_64/b53de08042d71c98ad809672a924f0906ffce47fa14135f15d8d8c792bf84d75/repodata/repomd.xml: [Errno 14] HTTP Error 403 - Forbidden”

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

how to fix a broken yum repository? thnx

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