How to do it...

First, we're going to just check the version of Ansible that we've got installed:

$ ansible --versionansible 2.4.2.0  config file = /etc/ansible/ansible.cfg  configured module search path = [u'/home/vagrant/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']  ansible python module location = /usr/lib/python2.7/site-packages/ansible  executable location = /usr/bin/ansible  python version = 2.7.5 (default, Apr 11 2018, 07:36:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]

This is version 2.4.2.0.

As with a lot of packages from the standard repositories, they tend to be a stable (older) version. If you wanted to, it's also possible to install pip (covered in Chapter 11, Web Servers, Databases, and Mail Servers) and use ...

Get Linux Administration Cookbook 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.