I want to install ansible in RHEL 8 Centos.
To use yum install ansible i must enable epel release but i can’t find a best source of epel release for Rhel 8.
I tried this
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install ansible
The output i got is
Last metadata expiration check: 0:01:26 ago on Sun 11 Aug 2019 12:21:55 PM UTC.
Error:
Problem: conflicting requests
- nothing provides python-setuptools needed by ansible-2.8.2-1.el7.noarch
- nothing provides python-jinja2 needed by ansible-2.8.2-1.el7.noarch
- nothing provides python-six needed by ansible-2.8.2-1.el7.noarch
- nothing provides PyYAML needed by ansible-2.8.2-1.el7.noarch
- nothing provides python2-cryptography needed by ansible-2.8.2-1.el7.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
3
Answers
EPEL8 is not released yet. There are some packages available, but a lot are still being worked on and the repo is not considered “generally available”.
For now, you can install Ansible from the Python Package Index (PyPI):
If you are using RHEL 8 then you can use the subscription manager to get Ansible with the host and config file pre-built.
Also, you will need to create an account on https://developers.redhat.com before you can do this:
This worked for RHEL9 Should work for RHEL8 as well