File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 827
827
owner : postgres
828
828
group : postgres
829
829
mode : 0640
830
- register : generate_pg_hba
831
830
when : is_master == "true"
832
831
833
832
- name : Prepare PostgreSQL | generate pg_hba.conf on Replica
837
836
owner : postgres
838
837
group : postgres
839
838
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
843
841
844
842
- name : Prepare PostgreSQL | reload for apply the pg_hba.conf
845
843
become : true
848
846
register : psql_reload_result
849
847
changed_when : psql_reload_result.rc == 0
850
848
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
852
849
when : existing_pgcluster is not defined or not existing_pgcluster|bool
853
850
tags : patroni, pg_hba, pg_hba_generate
854
851
You can’t perform that action at this time.
0 commit comments