Easy Way to install Ansible on Linux

Reading Time: < 1 minute

What is the easiest way to install Ansible on Linux?

If you are using Ansible from the official Red Hat or CentOS repositories you may have noticed that the Ansible revision available via yum is significantly out of date. Take Red Hat 7 for example, not a very old version of Red Hat, but certainly not the newest. If you install Ansible via the official rhel-7-server-extras-beta-rpms repo you get version ansible-

What is the latest version of Ansible?

At the time of writing the latest version of Ansible is 4.10.0 (much more up to date than 2.3.0)

How do I Install Python PIP?

If you are using Python3.6 or above use

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py --user

If you are using an older version of Python use

curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py --user

You should receive a message like this

Successfully installed pip-20.3.4 setuptools-44.1.1 wheel-0.37.1

Install Ansible

Now use PIP to install the latest version of ansible

python -m pip install --user ansible

Depending on your system it may take a few minutes to install. The install will look something like this:

, Easy Way to install Ansible on Linux

Thats it! You are now ready to start experimenting with Ansible on your Linux System. Have Fun.

You may also like...

Leave a Reply

Your email address will not be published.