Skip to content

Instantly share code, notes, and snippets.

@vialde
Created May 22, 2014 10:05
Show Gist options
  • Save vialde/bb2b3c870772d32b879a to your computer and use it in GitHub Desktop.
Save vialde/bb2b3c870772d32b879a to your computer and use it in GitHub Desktop.
vars:
ec2_tags: " deployment: {{ lookup('env','ANSIBLE_DEPLOYMENT') }} "
tasks:
- name: Launch instance
local_action: ec2 keypair={{keypair}} instance_profile_name={{instance_profile_name}} group={{security_group}} region={{aws_region}} instance_type={{instance_type}} image={{image}} wait=yes count={{instance_count}} instance_tags="{ {{ec2_tags}} }"
register: ec2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment