Skip to content

Instantly share code, notes, and snippets.

@cocoy
Created May 17, 2012 14:53
Embed
What would you like to do?
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