title: How to install Ansible on CentOS8
body: <p>I am trying to install ansible on CentOS 8 but no success, After searching google i did following steps</p>
  
  <pre><code>yum install python3-pip
  pip3 install ansible
  </code></pre>
  
  <p>but it shows following output and no ansible avaiable</p>
  
  <pre><code>[root@okd1 ~]# pip3 install ansible
  WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
  Requirement already satisfied: ansible in ./.local/lib/python3.6/site-packages
  Requirement already satisfied: jinja2 in ./.local/lib/python3.6/site-packages (from ansible)
  Requirement already satisfied: PyYAML in /usr/lib64/python3.6/site-packages (from ansible)
  Requirement already satisfied: cryptography in /usr/lib64/python3.6/site-packages (from ansible)
  Requirement already satisfied: MarkupSafe&gt;=0.23 in ./.local/lib/python3.6/site-packages (from jinja2-&gt;ansible)
  Requirement already satisfied: idna&gt;=2.1 in /usr/lib/python3.6/site-packages (from cryptography-&gt;ansible)
  Requirement already satisfied: asn1crypto&gt;=0.21.0 in /usr/lib/python3.6/site-packages (from cryptography-&gt;ansible)
  Requirement already satisfied: six&gt;=1.4.1 in /usr/lib/python3.6/site-packages (from cryptography-&gt;ansible)
  Requirement already satisfied: cffi!=1.11.3,&gt;=1.7 in /usr/lib64/python3.6/site-packages (from cryptography-&gt;ansible)
  Requirement already satisfied: pycparser in /usr/lib/python3.6/site-packages (from cffi!=1.11.3,&gt;=1.7-&gt;cryptography-&gt;ansible)
  </code></pre>
  
  <p>i tried to manually download and install but still no success</p>
  
  <pre><code>curl -o ansible.rpm https://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/ansible-2.8.5-1.el7.ans.noarch.rpm
  
  [root@okd1 ~]# yum install ansible.rpm
  Last metadata expiration check: 0:09:14 ago on Wed 25 Sep 2019 05:39:22 PM EDT.
  Error: 
   Problem: conflicting requests
    - nothing provides python-setuptools needed by ansible-2.8.5-1.el7.ans.noarch
    - nothing provides python-six needed by ansible-2.8.5-1.el7.ans.noarch
    - nothing provides PyYAML needed by ansible-2.8.5-1.el7.ans.noarch
    - nothing provides python-jinja2 needed by ansible-2.8.5-1.el7.ans.noarch
    - nothing provides python-paramiko needed by ansible-2.8.5-1.el7.ans.noarch
    - nothing provides python2-cryptography needed by ansible-2.8.5-1.el7.ans.noarch
    - nothing provides sshpass needed by ansible-2.8.5-1.el7.ans.noarch
  (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
  </code></pre>
  
  <p>then tried to deploy these packages but no success</p>
  
  <pre><code>[root@okd1 ~]# pip3 install python-setuptools
  WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
  Collecting python-setuptools
    Could not find a version that satisfies the requirement python-setuptools (from versions: )
  No matching distribution found for python-setuptools
  [root@okd1 ~]# 
  [root@okd1 ~]# pip2 install python-setuptools
  WARNING: Running pip install with root privileges is generally not a good idea. Try `pip2 install --user` instead.
  Collecting python-setuptools
    Could not find a version that satisfies the requirement python-setuptools (from versions: )
  No matching distribution found for python-setuptools
  </code></pre>