Added update step to update pg_hba.conf postgresql/tasks

This commit is contained in:
strNophix 2022-03-14 11:47:55 +01:00
parent 58f2a973d9
commit b465413d42

View File

@ -21,7 +21,15 @@
regexp: ^#listen_addresses = 'localhost'
line: listen_addresses='*'
become: true
# TODO: Copy over template `pg_hba.conf` to `/etc/postgresql/12/main/pg_hba.conf`
- name: Update `pg_hba.conf`
community.postgresql.postgresql_pg_hba:
dest: /etc/postgresql/12/main/pg_hba.conf
contype: host
users: postgres
source: 192.168.56.0/24
method: md5
create: true
become: true
- name: Create new test-database
become_user: postgres
become: yes
@ -57,4 +65,4 @@
service:
name: postgresql
state: restarted
enabled: yes
enabled: yes