Skip to content

Commit 7924d46

Browse files
committed
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: vitabaks#271 (reply in thread)
1 parent afe2de9 commit 7924d46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

remove_cluster.yml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
name: patroni
1515
state: stopped
1616
enabled: false
17+
ignore_errors: true
18+
when: remove_postgres|bool
1719
- name: Delete PostgreSQL database content
1820
file:
1921
path: "{{ postgresql_data_dir }}"

0 commit comments

Comments
 (0)