Upgrading Ansible is an easy task. You can do it using the below command:
1) sudo pip install Ansible==<version-number>