Created
June 21, 2013 00:36
-
-
Save eslick/5828008 to your computer and use it in GitHub Desktop.
Ansible Setup for AWS
This file contains 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
cd ansible # run in the ansible directory | |
export AWS_ACCESS_KEY_ID='<aws_accesskey_id>' | |
export AWS_SECRET_ACCESS_KEY='<aws_secret_key>' | |
export ANSIBLE_HOSTS=$(pwd)/plugins/inventory/ec2.py | |
# use the following only if you're using ssh as transport (typical) | |
export ANSIBLE_SSH_ARGS="-o ForwardAgent=yes" | |
# Run ssh-agent and add your AWS pem key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment