From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Setting up an Ansible control node with Python pip

Setting up an Ansible control node with Python pip - Ansible Tutorial

From the course: Ansible: From Basics to Guru by Pearson

Setting up an Ansible control node with Python pip

An alternative way to install Ansible is using Python PIP. So what is the difference? Well, if you install Ansible from the distribution repositories, you get a version of Ansible that is well tested. If you install Ansible using Python PIP, you get the latest version of Ansible. And you might encounter features that have not yet stabilized and which would have been stabilized in distributions. So that by itself is a good reason to prefer software that comes from the distributions. But you might be on a Linux distribution where there is no Ansible package in the distribution itself. Or you might be interested in testing the latest features and the latest version of Ansible. There you are better off using Python PIP. Let's talk about how you can do that on Linux in general. In Fedora or on CentOS, you would start by using dnf install python3-pip. On other Linux distributions, procedure is the same. You just need a different package manager because dnf is not everywhere available. Then…

Contents