"rhel-7-server-ansible-2.6-rpms is not a valid repository ID" error message being thrown when trying to enable the repository
Hoping one of the members here can help me. I am trying to install OCP 3.11 using a terraform script and I am getting the following error being thrown :[[0m^[[0mmodule.openshift.module.prepare_bastion.null_resource.run_playbook_create[0] (remote-exec): ^[[0;31mfatal: [172.16.55.2]: FAILED! => {"changed": false, "msg": "rhel-7-server-ansible-2.6-rpms is not a valid repository ID", "results": ["Repository 'rhel-7-server-ose-3.11-rpms' is enabled for this system", "Repository 'rhel-7-server-optional-rpms' is enabled for this system", "rhel-7-server-ansible-2.6-rpms is not a valid repository ID"]}^[[0m
When I run the following command on the command line also I get the same error.
[root@vg-boot terraform-openshift3-vmware-example]# subscription-manager repos --enable "rhel-7-server-ansible-2.6-rpms"
Error: 'rhel-7-server-ansible-2.6-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
I do have an OCP NFR Subscription.
What am I missing?
Any help would be greatly appreciated.
Thanks and Regards,
Vishy
Responses
Hi Venkata,
That most probably means that the use of Ansible is not covered by your subscription. :)
What you can do is using Ansible from the EPEL repository - execute these commands :
sudo rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum update
sudo yum install ansible
Regards,
Christian
Hi Venkata,
You're welcome ! :) Here you can request the subscription : https://www.ansible.com/products/pricing
Regards,
Christian
Hi Jan Gerrit,
Thanks ! :) Alternatively Venkata can download/request the free trial - as far as I know ten nodes are free (forever).
Regards,
Christian
Hi Venkata,
It's me again ... Yesterday I had a longer discussion about how to solve your problem with my friend (and Accelerators "buddy"),
Jan Gerrit Kootstra. He said that you indeed would need the specific Ansible version 2.6 to run OCP without issues, so in order
to get that version, you need the official Red Hat repository to gain access. We were not sure if the use of the Ansible (Engine)
repos is covered by your subscription, or not. Conclusion : We do recommend to contact Red Hat Customer Service and/or the Red Hat Support team. Eventually there is a misconfiguration and this can only be solved by Red Hat. Additionally contact your TAM. :)
Regards,
Christian