Commit 803bd8bf by Carson Gee

Replacing ec2_local with current ec2 module and adding a future module for use in other plays

parent 423ad9ef
......@@ -18,7 +18,7 @@
- name: terminating single instance
local_action:
module: ec2_local
module: ec2
state: 'absent'
region: "{{ region }}"
instance_ids: ${tag_lookup.instance_ids}
......@@ -36,7 +36,7 @@
- name: Launch ec2 instance
local_action:
module: ec2_local
module: ec2
keypair: "{{ keypair }}"
group: "{{ security_group }}"
instance_type: "{{ instance_type }}"
......@@ -44,7 +44,9 @@
wait: true
region: "{{ region }}"
instance_tags: "{{instance_tags}}"
root_ebs_size: "{{ root_ebs_size }}"
volumes:
- device_name: /dev/sda1
volume_size: "{{ root_ebs_size }}"
zone: "{{ zone }}"
instance_profile_name: "{{ instance_profile_name }}"
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