Skip to content

Instantly share code, notes, and snippets.

@cocoy
Created May 17, 2012 14:53
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cocoy/2719440 to your computer and use it in GitHub Desktop.
Save cocoy/2719440 to your computer and use it in GitHub Desktop.
testing ansible-pull
#!/bin/bash -ex
# install needed packages for ansible
apt-get install -y -q python-paramiko python-yaml python-jinja2 python-simplejson
apt-get install -y -q git-core
# get ansible -- :)
git clone git://github.com/ansible/ansible.git
cd ./ansible
source ./hacking/env-setup
echo "localhost" > ~/ansible_hosts
export ANSIBLE_HOSTS=~/ansible_hosts
ansible-pull -U git://github.com/cocoy/ansible-playbooks.git -d /mnt/playbooks
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment