Added update step to update pg_hba.conf postgresql/tasks
This commit is contained in:
parent
58f2a973d9
commit
b465413d42
@ -21,7 +21,15 @@
|
|||||||
regexp: ^#listen_addresses = 'localhost'
|
regexp: ^#listen_addresses = 'localhost'
|
||||||
line: listen_addresses='*'
|
line: listen_addresses='*'
|
||||||
become: true
|
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
|
- name: Create new test-database
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
become: yes
|
become: yes
|
||||||
@ -57,4 +65,4 @@
|
|||||||
service:
|
service:
|
||||||
name: postgresql
|
name: postgresql
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user