From a83edcf23104540679beb02e06028b9a05d3d20c Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 26 Oct 2018 23:15:20 +0200 Subject: [PATCH] switch to md5 --- tasks/config.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/config.yml b/tasks/config.yml index 5a41ece..0fd748a 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -38,8 +38,7 @@ - name: Ensure PostgreSQL users are present postgresql_user: name: "{{ item.name }}" - # password: "{{ 'md5' + (item.password + item.name) | hash('md5') }}" - password: "{{ item.password | password_hash('sha256', 65534 | random(seed=inventory_hostname) | string) }}" + password: "{{ 'md5' + (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) }}"