Last active
October 29, 2015 22:14
-
-
Save jnakatsui/321203bab7c925717cab to your computer and use it in GitHub Desktop.
Ansible Install on Ubuntu 12.04
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 | |
sudo yum update | |
sudo yum install python-pip | |
sudo yum install build-essential | |
sudo yum install python-dev | |
sudo pip install paramiko PyYAML jinja2 httplib2 | |
sudo pip install ansible | |
# Boto | |
sudo pip install boto |
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 | |
sudo yum -y update | |
sudo yum -y install python-setuptools | |
sudo yum -y install python-dateutil | |
sudo yum -y install python-pip | |
sudo pip install paramiko PyYAML jinja2 httplib2 markupsafe | |
sudo pip install ansible | |
sudo pip install boto | |
sudo mkdir -p /opt/ansible/playbooks/gdb/ | |
sudo chown ec2-user:ec2-user /opt/ansible/playbooks/gdb | |
cd /home/ec2-user | |
sudo wget https://github.com/s3tools/s3cmd/archive/master.tar.gz | |
sudo tar -zxvf master.tar.gz | |
cd s3cmd-master | |
sudo python setup.py install | |
cd /home/ec2-user/.ssh | |
s3cmd get s3://gdb-init-files/ansible_rsa.pub | |
cat /home/ec2-user/.ssh/ansible_rsa.pub >> /home/ec2-user/.ssh/authorized_keys |
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 | |
sudo apt-get update | |
sudo apt-get install -y python-pip build-essential python-dev | |
sudo pip install paramiko PyYAML jinja2 httplib2 | |
sudo pip install ansible | |
# Boto | |
sudo pip install boto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment