Skip to content

Commit

Permalink
Merge pull request ANXS#145 from jesselang/omit-database-user-password
Browse files Browse the repository at this point in the history
Omit user passwords to allow creation and verification of a user and
  • Loading branch information
David Farrington committed Feb 15, 2016
2 parents dda12bc + c68ef93 commit 04d9082
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions tests/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ postgresql_users:
pass: md51a1dc91c907325c69271ddf0c944bc72
encrypted: yes

- name: zabaz

postgresql_user_privileges:
- name: baz
db: foobar

0 comments on commit 04d9082

Please sign in to comment.