Install latest Ansible on Ubuntu

Steps to get the latest version of Ansible installed on Ubuntu or any Ubuntu variant. In my case Kubuntu 18.04.1.

[email protected]:~$ sudo apt-get update
[email protected]:~$ sudo apt-get install software-properties-common
[email protected]:~$ sudo apt-add-repository ppa:ansible/ansible
[email protected]:~$ sudo apt-get update
[email protected]:~$ sudo apt-get install ansible
[email protected]:~$ ansible --version
ansible 2.6.2
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/danesh/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0]