Skip to content

Instantly share code, notes, and snippets.

@RyanSnodgrass
Last active October 25, 2017 14:44
Show Gist options
  • Save RyanSnodgrass/4d9388529dcb4ace09f880ce414c7ed9 to your computer and use it in GitHub Desktop.
Save RyanSnodgrass/4d9388529dcb4ace09f880ce414c7ed9 to your computer and use it in GitHub Desktop.
This goes in the user-data section of ec2 instance generation.
#!/bin/bash
yum update -y
yum -y install git
pip install ansible
mkdir /etc/ansible
touch /etc/ansible/hosts
echo localhost >> /etc/ansible/hosts
runuser -l ec2-user -c 'ansible-galaxy install rvm_io.ruby'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment