Jack Moore

Email: jack(at)jmoore53.com
Project Updates

Upgrading Ansible

15 Mar 2020 » ansible, legacy, update, upgrade

Recently I wanted to deploy a Minecraft server with Ansible. Unfortunately my ansible version is way out of date. This post covers how I updated to the latest version of Ansible.

Ansible

When I typed which ansible, I got /usr/bin/ansible, now when I type it I get /home/jack/.local/bin/ansible.

ansible --version gives:

$ ansible --version
ansible 2.9.6
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/jack/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/jack/.local/lib/python3.6/site-packages/ansible
  executable location = /home/jack/.local/bin/ansible
  python version = 3.6.5 (default, Apr  1 2018, 05:46:30) [GCC 7.3.0]

Installing using PIP

Because I have python2.7 and python3.5 installed on my server and python3.5 is required for the latest version of Ansible I am using pip3 to install the latest version of Ansible.

So I installed ansible with the quick command pip3 install --user ansible which installed it for the jack user on my server.

© Jack Moore