Skip to content

Commit 3eebc7a

Browse files
committed
fixes.
1 parent b07a7c2 commit 3eebc7a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

roles/patroni/templates/patroni.yml.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@ postgresql:
6262
- host all {{ postgresql_superuser_name }} {{ ansible_host }}/32 trust
6363
- host replication {{ postgresql_replication_user }} 127.0.0.1/32 {{ postgresql_replication_auth_method }}
6464
{% for host in groups['promoters'] %}
65-
{% if host != inventory_hostname %}
6665
- host replication {{ postgresql_replication_user }} {{ hostvars[host]['ansible_host'] }}/32 {{ postgresql_replication_auth_method }}
6766
- host all {{ postgresql_superuser_name }} {{ hostvars[host]['ansible_host'] }}/32 md5
68-
{% endif %}
6967
{% endfor %}
7068
{% if postgresql_additional_pg_hba is defined %}
7169
{% for rule in postgresql_additional_pg_hba %}

roles/pgbouncer/tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
dest: /etc/pgbouncer/pgbouncer.ini
4141
mode: '0644'
4242

43+
- name: Create userlist.txt
44+
ansible.builtin.template:
45+
src: userlist.txt.j2
46+
dest: /etc/pgbouncer/userlist.txt
47+
mode: '0600'
48+
4349
- name: Ensure correct ownership of /etc/pgbouncer/userlist.txt
4450
ansible.builtin.file:
4551
path: /etc/pgbouncer/userlist.txt

0 commit comments

Comments
 (0)