# terminate workers for this environment
---
- debug: msg="{{ ec2_id }}"
- pause: prompt="ctrl-C TO NOT TERMINATE INSTANCES"
- name: stop rqworker gracefully
  shell: /usr/local/bin/stop-rqworker.sh
  tags: 
    - stop-worker
- name: terminate workers
  local_action:
    module: ec2
    state: absent
    region: "{{ region }}"
    instance_ids: "{{ ec2_id }}"
  tags:
    - terminate-instance

# terminate workers for this environment
---
- debug: msg="{{ ec2_id }}"
- pause: prompt="ctrl-C TO NOT TERMINATE INSTANCES"
  tags:
    - terminate-instances
- name: stop rqworker gracefully
  shell: /usr/local/bin/stop-rqworker.sh
  tags: 
    - stop-worker
- name: terminate workers
  local_action:
    module: ec2
    state: absent
    region: "{{ region }}"
    instance_ids: "{{ ec2_id }}"
  tags:
    - terminate-instances

Make chance to bail tagged my terminate-instances as well.
Make chance to bail tagged my terminate-instances as well.
