From c68ef9346c45f6d2c0e35793da74d4f5da482017 Mon Sep 17 00:00:00 2001 From: Jesse Lang Date: Mon, 14 Dec 2015 14:55:00 -0600 Subject: [PATCH] Omit user passwords to allow creation and verification of a user and their permissions without requiring that the user's password be specified. Also, this seems more secure than a default of 'pass'. --- tasks/users.yml | 2 +- tests/vars.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/users.yml b/tasks/users.yml index 51a3bd28..55428a87 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -8,7 +8,7 @@ - name: PostgreSQL | Make sure the PostgreSQL users are present postgresql_user: name: "{{item.name}}" - password: "{{item.pass | default('pass')}}" + password: "{{ item.pass | default(omit) }}" encrypted: "{{ item.encrypted | default(omit) }}" port: "{{postgresql_port}}" state: present diff --git a/tests/vars.yml b/tests/vars.yml index dd10f663..57b98bec 100644 --- a/tests/vars.yml +++ b/tests/vars.yml @@ -14,6 +14,8 @@ postgresql_users: pass: md51a1dc91c907325c69271ddf0c944bc72 encrypted: yes + - name: zabaz + postgresql_user_privileges: - name: baz db: foobar