From c1aa755a3c0e7ed316ffe59406b8dcd0e5ad4443 Mon Sep 17 00:00:00 2001 From: Florian Ruynat <16313165+floryut@users.noreply.github.com> Date: Tue, 18 May 2021 19:29:04 +0200 Subject: [PATCH] Fix missing broken_etcd filter in recover control plane task (#7619) --- roles/recover_control_plane/etcd/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/recover_control_plane/etcd/tasks/main.yml b/roles/recover_control_plane/etcd/tasks/main.yml index d1f7912fd..a0e702575 100644 --- a/roles/recover_control_plane/etcd/tasks/main.yml +++ b/roles/recover_control_plane/etcd/tasks/main.yml @@ -24,6 +24,8 @@ - name: Set has_quorum fact set_fact: has_quorum: "{{ etcd_endpoint_health.stderr_lines | select('match', '.*is healthy.*') | list | length >= etcd_endpoint_health.stderr_lines | select('match', '.*is unhealthy.*') | list | length }}" + when: + - groups['broken_etcd'] - include_tasks: recover_lost_quorum.yml when: