Last active
October 25, 2017 14:44
-
-
Save RyanSnodgrass/4d9388529dcb4ace09f880ce414c7ed9 to your computer and use it in GitHub Desktop.
This goes in the user-data section of ec2 instance generation.
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 | |
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