Installing Ansible on Linux

The Ansible package is available on all major Linux distributions. In this section, we will install it onto both Ubuntu and CentOS machines. The Ansible 2.5 release was used at the time of developing this book, and it provides support for both Python 2.6 and Python 2.7. Also, starting from version 2.2, Ansible provides a tech preview for Python 3.5+.

Get Hands-On Enterprise Automation with Python. now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.