Upgrade Ansible to Version 2.10

In this blog post, we will learn how to upgrade Ansible 2.9 to Ansible 2.10, which is considered a major change.

Version 2.10

Ansible 2.10 brings many changes, including a new upgrade process that requires us to uninstall Ansible and reinstalling it. The reason behind this is the fact that Ansible has been broken down into two packages (ansible and Ansible-Base).

Uninstall

The first step in the upgrade process requires us to un-install Ansible, and in my case, I’m going to uninstall Ansible version 2.9 that I have on my host.

If you had installed Ansible with a package manager (apt, yum, etc.) use the following command:

apt remove ansible

If you installed Ansible with pip use the following command (use pip or pip3)

pip3 uninstall ansible

Install Version 2.10

To install version 2.10 simply run the following command.

pip3 install ansible

To check the version number type

ansible --version
ansible 2.1e.3 
config file = /etc/ansible/ansible.cfg 
configured module search path = [ 'root/. ansible/plugins/modules• , 
/usr/share/ansible/plugins/modules ] 
ansible python module location 
/usr/10ca1/1ib/python3.8/dist-packages/ansib1e 
executable location 
/usr/local/bin/ansible 
python version 
= 3.8.5 (default, Jul 28 2e2e, [GCC 9.3.e]

If you are new to managing Windows machines with Ansible visit our Ansible page.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.