Fixes #110: no_log setting cannot be overridden.

This commit is contained in:
Jeff Geerling 2020-03-20 10:42:52 -05:00
parent 1f05a98a2e
commit 558c6b6d14
3 changed files with 8 additions and 1 deletions

View File

@ -106,6 +106,10 @@ A list of databases to ensure exist on the server. Only the `name` is required;
A list of users to ensure exist on the server. Only the `name` is required; all other properties are optional.
postgres_users_no_log: true
Whether to output user data (which may contain sensitive information, like passwords) when managing users.
postgresql_version: [OS-specific]
postgresql_data_dir: [OS-specific]
postgresql_bin_path: [OS-specific]

View File

@ -62,3 +62,6 @@ postgresql_users: []
# login_unix_socket: # defaults to 1st of postgresql_unix_socket_directories
# port: # defaults to not set
# state: # defaults to 'present'
# Whether to output user data when managing users.
postgres_users_no_log: true

View File

@ -14,7 +14,7 @@
port: "{{ item.port | default(omit) }}"
state: "{{ item.state | default('present') }}"
with_items: "{{ postgresql_users }}"
no_log: true
no_log: "{{ postgres_users_no_log }}"
become: true
become_user: "{{ postgresql_user }}"
# See: https://github.com/ansible/ansible/issues/16048#issuecomment-229012509