Enable a Repo the Ansible Way
Recently I need to install a package called Lmod on a Red Hat 8 server. Lmod is available from RHEL 8 EPEL8 repository, however it has a dependency called lua-filesystem which is only available from codeready-builder repository. On my RHEL 8 server, the codeready-builder repository is not enabled by default. Here is how I’ve got Lmod installed manually: # subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms # dnf install Lmod Looking at the above commands, I needed to enable the codeready-builder-for-rhel-8-x86_64-rpms first before installing Lmod....