hashing method configurable.

This commit is contained in:
Andrea Dell'Amico 2024-05-13 17:59:41 +02:00
parent b8be7778e8
commit aded1a0426
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 4 deletions

View File

@ -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