Multiple ansible install versions on same control host

Hi :

I have a single control host that I would like to install different versions of Ansible to by placing each versions in their own separate directory.
So, say, I want to execute a playbook1.yml using ansible version1 and playbook2.yml using ansible version2, etc. That’s the idea.
Have anyone tried this before?. Care to share your experience?

Thanks,

BK

You can just use git checkout(s) for this - source contains a hacking/env-setup script that you can source to use Ansible from source :-).
You can even make a wrapper:

#!/bin/bash
. /path/to/checkout/hacking/env-setup
ansible-playbook “${@}”

Bk Lau bklau2006@gmail.com napisał: