Skip to content

Instantly share code, notes, and snippets.

@eslick
Created June 21, 2013 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eslick/5828008 to your computer and use it in GitHub Desktop.
Save eslick/5828008 to your computer and use it in GitHub Desktop.
Ansible Setup for AWS
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