Skip to content

Instantly share code, notes, and snippets.

@terrbear
Created August 25, 2018 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrbear/6d5f45e0329750dfadfdda0be0765d2e to your computer and use it in GitHub Desktop.
Save terrbear/6d5f45e0329750dfadfdda0be0765d2e to your computer and use it in GitHub Desktop.
#!/bin/bash -v
apt-get update
apt-get install -y python-pip python-dev libffi-dev libssl-dev
pip install s3cmd
pip install markupsafe
mkdir /root/ansible
s3cmd get --recursive s3://YOUR-BUCKET /root/ansible
pip install ansible
pip install setuptools --upgrade
sleep 30
cd /root/ansible && rm ansible.cfg && ansible-galaxy install -r deps.txt > /bootstrap.out
sleep 10
cd /root/ansible && ansible-playbook -i production -c local box.yml >> /bootstrap.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment