Last active
August 29, 2015 14:01
-
-
Save halberom/180061ef2e700b8eb263 to your computer and use it in GitHub Desktop.
launch ec2 instance
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
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