Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install specific version of Ansible (2.3.1.0) on Ubuntu 18.04 LTS

I want to install Ansible 2.3.1.0 on Ubuntu 18.04.

When I run apt-get install ansible, it installs the version 2.5.3.

Below is output of apt-cache policy ansible. After that, I removed the installation.

ansible:
  Installed: (none)
  Candidate: 2.5.3-1ppa~bionic
  Version table:
     2.5.3-1ppa~bionic 500
        500 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic/main amd64 Packages
        500 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic/main i386 Packages
     2.5.1+dfsg-1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
like image 672
user9849416 Avatar asked May 26 '18 01:05

user9849416


1 Answers

You can try to do it with python-pip, first install python-pip with apt:

sudo apt-get install python-pip python-dev

Then install the desired version of python using pip:

sudo -H pip install ansible==2.3.3.0

Here is the complete list of Ansible versions at the time of answering this question:

from versions: 1.0, 1.1, 1.2, 1.2.1, 1.2.2, 1.2.3, 1.3.0, 1.3.1, 1.3.2, 1.3.3,  
1.3.4, 1.4, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4,  
1.5.5, 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.8,1.6.9, 1.6.10,  
1.7, 1.7.1, 1.7.2, 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.9.0.1,1.9.1, 1.9.2, 1.9.3,  
1.9.4, 1.9.5, 1.9.6, 2.0.0.0, 2.0.0.1, 2.0.0.2, 2.0.1.0, 2.0.2.0, 2.1.0.0, 2.1.1.0,  
2.1.2.0, 2.1.3.0, 2.1.4.0, 2.1.5.0, 2.1.6.0, 2.2.0.0,2.2.1.0, 2.2.2.0, 2.2.3.0,  
2.3.0.0, 2.3.1.0, 2.3.2.0, 2.3.3.0, 2.4.0.0, 2.4.1.0, 2.4.2.0, 2.4.3.0, 2.4.4.0,  
2.5.0a1, 2.5.0b1, 2.5.0b2, 2.5.0rc1, 2.5.0rc2, 2.5.0rc3, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0a1)
like image 64
Arbab Nazar Avatar answered Sep 18 '22 19:09

Arbab Nazar