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 - name: Ensure PostgreSQL users are present
postgresql_user: postgresql_user:
name: "{{ item.name }}" name: "{{ item.name }}"
password: "{{ (item.password + item.name) | hash('md5') }}" password: "{{ item.password + item.name | hash('md5') }}"
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) }}"