[test@ip-172-31-1-143 ~]$ ansible webservers -m yum -a ‘name=https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm enablerepo=“amzn2-core-debuginfo/2/x86_64”’ -u test --become --ask-become-pass
SUDO password:
172.31.13.61 | FAILED! => {
“changed”: false,
“failed”: true,
“msg”: “Error setting/accessing repos: Error getting repository data for amzn2-core-debuginfo/2/x86_64, repository not found”
looks like that repo you are trying to enable is not there at all ?