switch to md5
This commit is contained in:
parent
57c1663518
commit
a83edcf231
|
@ -38,8 +38,7 @@
|
||||||
- name: Ensure PostgreSQL users are present
|
- name: Ensure PostgreSQL users are present
|
||||||
postgresql_user:
|
postgresql_user:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
# password: "{{ 'md5' + (item.password + item.name) | hash('md5') }}"
|
password: "{{ 'md5' + (item.password + item.name) | hash('md5') }}"
|
||||||
password: "{{ item.password | password_hash('sha256', 65534 | random(seed=inventory_hostname) | string) }}"
|
|
||||||
encrypted: "{{ item.encrypted | default('yes') }}"
|
encrypted: "{{ item.encrypted | default('yes') }}"
|
||||||
priv: "{{ item.priv | default(omit) }}"
|
priv: "{{ item.priv | default(omit) }}"
|
||||||
role_attr_flags: "{{ item.role_attr_flags | default(omit) }}"
|
role_attr_flags: "{{ item.role_attr_flags | default(omit) }}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user