Commit 4e8c0d1e by Carson Gee

Merge pull request #1190 from edx/cg/new_ec2

Updating local ec2 module
parents 6b704b90 803bd8bf
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
- name: terminating single instance - name: terminating single instance
local_action: local_action:
module: ec2_local module: ec2
state: 'absent' state: 'absent'
region: "{{ region }}" region: "{{ region }}"
instance_ids: ${tag_lookup.instance_ids} instance_ids: ${tag_lookup.instance_ids}
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
- name: Launch ec2 instance - name: Launch ec2 instance
local_action: local_action:
module: ec2_local module: ec2
keypair: "{{ keypair }}" keypair: "{{ keypair }}"
group: "{{ security_group }}" group: "{{ security_group }}"
instance_type: "{{ instance_type }}" instance_type: "{{ instance_type }}"
...@@ -44,7 +44,9 @@ ...@@ -44,7 +44,9 @@
wait: true wait: true
region: "{{ region }}" region: "{{ region }}"
instance_tags: "{{instance_tags}}" instance_tags: "{{instance_tags}}"
root_ebs_size: "{{ root_ebs_size }}" volumes:
- device_name: /dev/sda1
volume_size: "{{ root_ebs_size }}"
zone: "{{ zone }}" zone: "{{ zone }}"
instance_profile_name: "{{ instance_profile_name }}" instance_profile_name: "{{ instance_profile_name }}"
register: ec2 register: ec2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment