Last active
January 18, 2017 14:10
-
-
Save biggers/4c2b6c2d496c1695f538aae1457f6af8 to your computer and use it in GitHub Desktop.
Installing Ansible from 'git source' -- by tagged-release
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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