Hi all -
I’m testing out upgrading to a later version of Ansible and how my playbooks would need to be modified prior to actually doing the upgrade. In order to test this out, I’m doing the following:
- Deleting /usr/bin/ansible* (yes - I had done the install of ansible up until now - due to multiple users on the system)
- Deleting /usr/share/ansible
- Go into my local github clone of ansible, rm -rf all contents
- “git checkout release1.6.1” (random non-devel version test higher than I really need to support Tower, just to see how my playbooks are affected)
- python setup.py build
- source hacking/env-setup
My playbooks require modification (coming from 1.3.1 and apparent variable changes that no longer allow the ${var} notation it appears, perhaps more) - but don’t want to take that on just yet. So I start backing down versions to see what version I can run without modifying playbooks. So I run this:
-
“git checkout release1.4.0”
-
python setup.py build
-
source hacking/env-setup
For some strange reason, after completely resetting my environment, “ansible --version” is still returning “ansible 1.6.1”. I’ll even do an “rm -rf” on my source directory, do a “git reset --hard” and do a complete rebuild, nothing. What am I missing here - where is that version number coming from, because I’m concerned I’m not hitting the right thing, or I still have something hanging around that could make stability an issue.
Running a “which ansible” returns the following, so I’m pretty sure I’m pulling the right executable: ~/gitroot/ansible/bin/ansible
Thoughts?