Multiple ansible install versions on same control host

161 views
Skip to first unread message

Bk Lau

unread,
Sep 17, 2014, 11:56:20 AM9/17/14
to ansible...@googlegroups.com
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

Tomasz Kontusz

unread,
Sep 17, 2014, 12:11:25 PM9/17/14
to ansible...@googlegroups.com
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 <bkla...@gmail.com> napisał:

--
Wysłane za pomocą K-9 Mail.
Reply all
Reply to author
Forward
0 new messages