Skip to content

Commit

Permalink
remove_cluster: ignore the error if the patroni service is unavailable
Browse files Browse the repository at this point in the history
an error may occur when trying to delete a partially deployed cluster, for example, when only etcd/consul is deployed.

Example: #271 (reply in thread)
  • Loading branch information
vitabaks committed Mar 6, 2023
1 parent afe2de9 commit 7924d46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions remove_cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 7924d46

Please sign in to comment.