DEV-1007 Fix #2 postgres update database state

main
Michael Haehnel 2 years ago
parent 7f2ff1c3bc
commit 0842a54a03
No known key found for this signature in database
GPG Key ID: D2FA233B52AEC75C

@ -7,7 +7,7 @@
- name: "Updating pg_hba.conf entries for postgres admin user" - name: "Updating pg_hba.conf entries for postgres admin user"
lineinfile: lineinfile:
state: "{{ database_state }}" state: present
regex: "^hostssl[ ]+all[ ]+{{ postgres_admin_user }}" regex: "^hostssl[ ]+all[ ]+{{ postgres_admin_user }}"
line: |- line: |-
hostssl all {{ postgres_admin_user }} {{ shared_service_network }} md5 hostssl all {{ postgres_admin_user }} {{ shared_service_network }} md5
@ -15,7 +15,7 @@
- name: "Updating pg_hba.conf entries for postgres readonly user" - name: "Updating pg_hba.conf entries for postgres readonly user"
lineinfile: lineinfile:
state: "{{ database_state }}" state: present
regex: "^hostssl[ ]+all[ ]+{{ pgadmin4_oidc_dev_username }}" regex: "^hostssl[ ]+all[ ]+{{ pgadmin4_oidc_dev_username }}"
line: |- line: |-
hostssl all {{ pgadmin4_oidc_dev_username }} {{ shared_service_network }} md5 hostssl all {{ pgadmin4_oidc_dev_username }} {{ shared_service_network }} md5

Loading…
Cancel
Save