fix hashing

This commit is contained in:
Robert Kaussow 2018-10-23 22:59:45 +02:00
parent ec058ff004
commit f802a13f79

View File

@ -31,7 +31,7 @@
- name: Ensure PostgreSQL users are present
postgresql_user:
name: "{{ item.name }}"
password: "{{ (item.password + item.name) | hash('md5') }}"
password: "{{ item.password + item.name | hash('md5') }}"
encrypted: "{{ item.encrypted | default('yes') }}"
priv: "{{ item.priv | default(omit) }}"
role_attr_flags: "{{ item.role_attr_flags | default(omit) }}"