Skip to content

Commit 22c7c0a

Browse files
committed
Revert "update pg_hba tasks"
This reverts commit a7f683b.
1 parent a7f683b commit 22c7c0a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

roles/patroni/tasks/main.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,6 @@
827827
owner: postgres
828828
group: postgres
829829
mode: 0640
830-
register: generate_pg_hba
831830
when: is_master == "true"
832831

833832
- name: Prepare PostgreSQL | generate pg_hba.conf on Replica
@@ -837,9 +836,8 @@
837836
owner: postgres
838837
group: postgres
839838
mode: 0640
840-
register: generate_pg_hba
841-
when: (is_master != "true" and postgresql_conf_dir != postgresql_data_dir)
842-
or postgresql_exists == "true"
839+
when: is_master != "true" and
840+
postgresql_conf_dir != postgresql_data_dir
843841

844842
- name: Prepare PostgreSQL | reload for apply the pg_hba.conf
845843
become: true
@@ -848,7 +846,6 @@
848846
register: psql_reload_result
849847
changed_when: psql_reload_result.rc == 0
850848
failed_when: false # exec pg_reload_conf on all running postgres (to re-run with --tag pg_hba).
851-
when: generate_pg_hba is changed
852849
when: existing_pgcluster is not defined or not existing_pgcluster|bool
853850
tags: patroni, pg_hba, pg_hba_generate
854851

0 commit comments

Comments
 (0)