aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2022-12-23 14:25:38 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2022-12-23 14:25:38 +0100
commitfdf38928edd187949c8f4fc5a60b9780500d3e2e (patch)
tree4c8f90942e63ae66d1ca66c0af0096bc54a71abb /ansible
parent03c07f8d89adf7282f0da25e2342b9749ca1e5cc (diff)
downloadinfra-fdf38928edd187949c8f4fc5a60b9780500d3e2e.tar.gz
infra-fdf38928edd187949c8f4fc5a60b9780500d3e2e.tar.bz2
infra-fdf38928edd187949c8f4fc5a60b9780500d3e2e.tar.xz
infra-fdf38928edd187949c8f4fc5a60b9780500d3e2e.zip
concourse
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"
+