Commit c361d39f by arbabnazar

update the requirement.txt to ansible 2.x

parent ceab49dc
......@@ -30,17 +30,17 @@
state: 'absent'
region: "{{ region }}"
instance_ids: "{{tag_lookup.instance_ids}}"
when: terminate_instance == true and tag_lookup.instance_ids|length == 1
when: terminate_instance == true and tag_lookup.instances|length == 1
- name: deregister instance from an an elb if it was in one
local_action:
module: ec2_elb
region: "{{ region }}"
instance_id: "{{ tag_lookup.instance_ids[0] }}"
instance_id: "{{ tag_lookup.instances[0] }}"
ec2_elbs:
- "{{ elb }}"
state: absent
when: terminate_instance == true and elb and tag_lookup.instance_ids|length == 1
when: terminate_instance == true and elb and tag_lookup.instances|length == 1
- name: Launch ec2 instance
local_action:
......
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