My playbook is as following... this is related to one host not several at once:
---------------- Deregister from TG's
- name: DeRegister instance ID from a Public TG
elb_target:
target_group_name: "{{ TG_public }}"
target_id: "{{ Instance_ID }}"
state: absent
target_status: unused ## wait until this status
target_status_timeout: 300 ## in seconds
profile: "{{ profile_ID }}" ## specify AWS profile
delegate_to: 127.0.0.1 ## Execute this stage locally
- name: DeRegister instance ID from a Private TG
elb_target:
target_group_name: "{{ TG_private }}"
target_id: "{{ Instance_ID }}"
state: absent
target_status: unused ## wait until this status
target_status_timeout: 300 ## in seconds
profile: "{{ profile_ID }}" ## specify AWS profile
delegate_to: 127.0.0.1 ## Execute this stage locally
----------------------------------
The question how to execute above tasks in parallel... Please help