Created
August 25, 2018 21:42
-
-
Save terrbear/6d5f45e0329750dfadfdda0be0765d2e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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