diff --git a/playbooks/common-tasks/haproxy-endpoint-manage.yml b/playbooks/common-tasks/haproxy-endpoint-manage.yml index 95143a7536..4db628cd9f 100644 --- a/playbooks/common-tasks/haproxy-endpoint-manage.yml +++ b/playbooks/common-tasks/haproxy-endpoint-manage.yml @@ -24,7 +24,9 @@ wait_interval: "{{ haproxy_wait_interval | default(5) }}" wait_retries: "{{ haproxy_wait_retries | default(24) }}" weight: "{{ haproxy_weight | default(omit) }}" - delegate_to: "{{ item }}" + delegate_to: "{{ delegate_host }}" with_items: "{{ groups['haproxy'] }}" + loop_control: + loop_var: delegate_host tags: - common-haproxy