Skip to content

Instantly share code, notes, and snippets.

@erning
Last active January 11, 2020 22:57
Show Gist options
  • Save erning/7538761 to your computer and use it in GitHub Desktop.
Save erning/7538761 to your computer and use it in GitHub Desktop.
isolated ansible installation

still running from source

$ git clone git://github.com/ansible/ansible.git
$ cd ./ansible
$ virtualenv .virtualenv
$ source .virtualenv/bin/activate
$ pip install paramiko PyYAML jinja2

link commands

$ cp _ansible-wrapper ~/bin
$ ln -s ~/bin/_ansible-wrapper ~/bin/ansible
$ ln -s ~/bin/_ansible-wrapper ~/bin/ansible-playbook
$ ln -s ~/bin/_ansible-wrapper ~/bin/ansible-pull
$ ln -s ~/bin/_ansible-wrapper ~/bin/ansible-docs
#!/bin/bash
source "$HOME/apps/ansible/.virtualenv/bin/activate"
source "$HOME/apps/ansible/hacking/env-setup" -q
exec "$ANSIBLE_HOME/bin/${0##/*/}" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment