From d1d68f8f30cbcf447e60f43775a09f8110019bdc Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 3 May 2023 09:37:24 +0200 Subject: [PATCH] Add drain option to haproxy-endpoint-manage Drain option allows to wait until all connections will close and then move backend to the MAINT state. Task will wait until MAINT is reached, so drain is disabled by default. Change-Id: I531f2def83df9779f656ccb308d9b234f110107a --- playbooks/common-tasks/haproxy-endpoint-manage.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/common-tasks/haproxy-endpoint-manage.yml b/playbooks/common-tasks/haproxy-endpoint-manage.yml index 742f0b3b73..c630ae951e 100644 --- a/playbooks/common-tasks/haproxy-endpoint-manage.yml +++ b/playbooks/common-tasks/haproxy-endpoint-manage.yml @@ -17,6 +17,7 @@ community.general.haproxy: socket: /var/run/haproxy.stat backend: "{{ haproxy_backend | default(omit) }}" + drain: "{{ haproxy_drain | default(False) }}" host: "{{ inventory_hostname }}" state: "{{ haproxy_state | default('enabled') }}" shutdown_sessions: "{{ haproxy_shutdown_sessions | default(False) | bool }}"