diff --git a/tasks/configure-access.yml b/tasks/configure-access.yml index 1d89b20..052bf05 100644 --- a/tasks/configure-access.yml +++ b/tasks/configure-access.yml @@ -10,8 +10,7 @@ users: '{{ item.0.user }}' address: '{{ item.1 }}' databases: '{{ item.0.name }}' - # method: 'scram-sha-256' - method: 'md5' + method: '{{ item.0.hash_method | default("scram-sha-256") }}' owner: root group: postgres mode: "0640" @@ -64,8 +63,7 @@ users: '{{ item.0.user }}' address: '{{ item.1 }}' databases: '{{ item.0.name }}' - # method: 'scram-sha-256' - method: 'md5' + method: '{{ item.0.hash_method | default("scram-sha-256") }}' state: "{{ item.0.state | default('present') }}" owner: root group: postgres