add postgres_hba_entries_extra
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-10-23 10:00:52 +02:00
parent b651c24601
commit 39504bcad3
2 changed files with 3 additions and 1 deletions

View File

@ -68,3 +68,5 @@ postgres_hba_entries:
- all
address: "::1/128"
auth_method: md5
postgres_hba_entries_extra: []

View File

@ -25,7 +25,7 @@
databases: "{{ item.databases | default(['all']) | join(',') }}"
method: "{{ item.auth_method | default('md5') }}"
state: "{{ item.state | default('present') }}"
loop: "{{ postgres_hba_entries }}"
loop: "{{ postgres_hba_entries + postgres_hba_entries_extra }}"
loop_control:
label: "{{ item.address | default('samehost') }}:{{ item.databases | default(['all']) | join(',') }}:{{ item.users | default(['all']) | join(',') }}"
notify: __postgres_restart