diff options
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/knot-pg.yml (renamed from ansible/knot-pg-backup.yml) | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ansible/knot-pg-backup.yml b/ansible/knot-pg.yml index 4d0cac1..ec0b86b 100644 --- a/ansible/knot-pg-backup.yml +++ b/ansible/knot-pg.yml @@ -23,6 +23,7 @@ - name: Configure environment become: yes + tags: env copy: dest: "{{ wal_g }}/{{ item.file }}" content: | @@ -52,5 +53,20 @@ become: yes lineinfile: path: /etc/postgresql/{{ pg_v }}/main/postgresql.conf + regexp: listen_addresses + line: "listen_addresses = '127.0.0.1,10.0.3.1,fdf3:aad9:a885:b3a::1'" + + - name: /etc/postgresql/{{ pg_v }}/main/postgresql.conf + become: yes + lineinfile: + path: /etc/postgresql/{{ pg_v }}/main/postgresql.conf regexp: wal-g.conf line: "include = 'wal-g.conf'" + + - name: /etc/postgresql/{{ pg_v }}/main/pg_hba.conf + become: yes + lineinfile: + path: /etc/postgresql/{{ pg_v }}/main/pg_hba.conf + regexp: fdf3:aad9:a885:b3a + line: "host all all fdf3:aad9:a885:b3a::/64 scram-sha-256" + |