Added update step to update pg_hba.conf postgresql/tasks
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user