OCI: Unable to install Ansible in OL8 when using OSMH
Applies To:
Oracle Cloud Infrastructure - Version N/A and later
Symptoms:
When trying to install Ansible using this document: , it gives the following error:
$ sudo yum install oci-ansible-collection --enablerepo ol8_developer --enablerepo ol8_developer_EPELThis system is receiving updates from OSMH server.Error: Unknown repo: 'ol8_developer'
Cause:
The "--enablerepo ol8_developer --enablerepo ol8_developer_EPEL" is not supported when you have OSMH enabled. the channels are available from OSMH, but the name is different than how it reports when using yum directly.
Solution:
If you want to use OSMH, you will have to add the repos after the instance is launched, Use the "Adding Software Sources" and add this one "Oracle Linux 8 EPEL Packages for Development (x86_64)" and this one "Oracle Linux 8 Development Packages (x86_64)".