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 ...