Commit 66f5fe15 by arbabnazar

fix the duplicate entry of rabbitmq_refresh

parent ba1c2434
......@@ -5,10 +5,6 @@
- name: lookup tags for terminating existing instance
local_action:
# module: ec2_lookup
# region: "{{ region }}"
# tags:
# - Name: "{{ name_tag }}"
module: ec2_remote_facts
region: "{{ region }}"
filters:
......@@ -18,8 +14,7 @@
when: terminate_instance == true
- debug:
msg: "{{ tag_lookup }}"
msg: "{{ vpc_subnet_id }}"
- name: checking for other instances
debug: msg="Too many results returned, not terminating!"
when: terminate_instance == true and tag_lookup.instances|length > 1
......
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