Commit 13d7fd75 by John Jarvis

fixing names of tasks in launch_ec2

parent f0348d2e
......@@ -3,7 +3,7 @@
# Will terminate an instance if one and only one already exists
# with the same name
- name: lookup tags for terminating existing instance
- name: launch_ec2 | lookup tags for terminating existing instance
local_action:
module: ec2_lookup
region: "{{ region }}"
......@@ -12,7 +12,8 @@
register: tag_lookup
when: terminate_instance == true
- debug: msg="Too many results returned, not terminating!"
- name: launch_ec2 | checking for other instances
debug: msg="Too many results returned, not terminating!"
when: terminate_instance == true and tag_lookup.instance_ids|length > 1
- name: terminating single instance
......
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