Skip to content

Instantly share code, notes, and snippets.

@halberom
Last active August 29, 2015 14:01
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 halberom/180061ef2e700b8eb263 to your computer and use it in GitHub Desktop.
Save halberom/180061ef2e700b8eb263 to your computer and use it in GitHub Desktop.
launch ec2 instance
tasks:
- name: Launch instance
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:
deployment: "{{ lookup('env','ANSIBLE_DEPLOYMENT') }}"
register: ec2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment