Skip to content

Instantly share code, notes, and snippets.

@biggers
Last active January 18, 2017 14:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biggers/4c2b6c2d496c1695f538aae1457f6af8 to your computer and use it in GitHub Desktop.
Save biggers/4c2b6c2d496c1695f538aae1457f6af8 to your computer and use it in GitHub Desktop.
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