Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installing Ansible from 'git source' -- by tagged-release
## better, working "shell-recipe" for installing a tagged
## Ansible release, from Git source
## https://github.com/ansible/ansible/tags
sudo aptitude install python-yaml python-jinja2 python-paramiko
cd ~/git/Python
tag_name='v1.9.4-1'
git clone git://github.com/ansible/ansible.git --recursive
cd ansible
ans=$PWD
git submodule update --init
git checkout tags/${tag_name} -b ${tag_name}
git submodule update --init ## just in case?
sudo script -c "make install" install.log
sudo rsync -av examples/hosts examples/ansible.cfg /etc/ansible/
sudo chown -R root.root /etc/ansible/
cd /usr/local/bin
sudo ln -s $ans/bin/* . # put all Ansible binary-symlinks here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.