Closed deanhamilton11 closed 3 years ago
I got the same issue today on CentOS Stream 8.
Playbook:
TASK [geerlingguy.certbot : Enable DNF module for CentOS 8+.] *********************************************************************************
fatal: [remote.host]: FAILED! => {"changed": false, "cmd": "dnf config-manager --set-enabled PowerTools\n", "delta": "0:00:00.170299", "end": "2020-12-19 21:21:09.392953", "msg": "non-zero return code", "rc": 1, "start": "2020-12-19 21:21:09.222654", "stderr": "Error: No matching repo to modify: PowerTools.", "stderr_lines": ["Error: No matching repo to modify: PowerTools."], "stdout": "", "stdout_lines": []}
System:
$ cat /etc/redhat-release
CentOS Stream release 8
$ dnf repolist all | grep -i powertools
powertools CentOS Linux 8 - PowerTools disabled
This was just fixed in https://github.com/geerlingguy/ansible-role-certbot/pull/137 — new release will be out soon!
This task is currently failing for me:
Enable DNF module for CentOS 8+
with the following output:Contents of my /etc/centos-release:
Output of
sudo dnf repolist
I believe that this is happening because the repo name is case sensitive, and it must have changed from
PowerTools
topowertools
in some recent release.Not sure why that would be, or if its possible for the playbook task to determine the repo name based on the centos version number.