Skip to content

Instantly share code, notes, and snippets.

@arbabnazar
Created May 15, 2016 14:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arbabnazar/b00173242279b3552be3056df0d7d7eb to your computer and use it in GitHub Desktop.
Save arbabnazar/b00173242279b3552be3056df0d7d7eb to your computer and use it in GitHub Desktop.
#!/bin/bash
apt-get update
apt-get install -y libffi-dev g++ libssl-dev python-pip python-dev git
pip install -U awscli ansible setuptools
aws s3 cp s3://tendo-github-key-s3/git-private-key /root/.ssh/bitbucket_secret_key
chmod 400 /root/.ssh/bitbucket_secret_key
aws s3 cp s3://tendo-github-key-s3/bitbucket /root/.ssh/config
chmod 600 /root/.ssh/config
ansible-pull -d /root/playbooks -i 'localhost,' -U git@bitbucket.org:arbabnazar/pull-test.git --accept-host-key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment