From 7924d467a85a4df4d90e25acd2782ce2407286e4 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Mon, 6 Mar 2023 12:22:25 +0300 Subject: [PATCH] remove_cluster: ignore the error if the patroni service is unavailable an error may occur when trying to delete a partially deployed cluster, for example, when only etcd/consul is deployed. Example: https://github.com/vitabaks/postgresql_cluster/discussions/271#discussioncomment-5211411 --- remove_cluster.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/remove_cluster.yml b/remove_cluster.yml index 03eac786d..8346a7c02 100644 --- a/remove_cluster.yml +++ b/remove_cluster.yml @@ -14,6 +14,8 @@ name: patroni state: stopped enabled: false + ignore_errors: true + when: remove_postgres|bool - name: Delete PostgreSQL database content file: path: "{{ postgresql_data_dir }}"