Search code examples
phpansibleprovisioning

Different Ansible Versions on same macbook


I want to install 2 versions of ansible on my macbook and use it on different vagrant boxes.

What is the best way to seperate 2 different ansible installations.

For example :

My vagrantbox1 require ansible 1.8.4 but my vagrantbox2 needs ansible 2.x.x

I am using pip to install the ansible versions


Solution

  • virtualenv is the standard tool for maintaining "environments" that require different python packages.

    Ansible 2.x should be compatible with 1.x, though.