Fixes #110: no_log setting cannot be overridden.
This commit is contained in:
parent
1f05a98a2e
commit
558c6b6d14
|
@ -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.
|
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_version: [OS-specific]
|
||||||
postgresql_data_dir: [OS-specific]
|
postgresql_data_dir: [OS-specific]
|
||||||
postgresql_bin_path: [OS-specific]
|
postgresql_bin_path: [OS-specific]
|
||||||
|
|
|
@ -62,3 +62,6 @@ postgresql_users: []
|
||||||
# login_unix_socket: # defaults to 1st of postgresql_unix_socket_directories
|
# login_unix_socket: # defaults to 1st of postgresql_unix_socket_directories
|
||||||
# port: # defaults to not set
|
# port: # defaults to not set
|
||||||
# state: # defaults to 'present'
|
# state: # defaults to 'present'
|
||||||
|
|
||||||
|
# Whether to output user data when managing users.
|
||||||
|
postgres_users_no_log: true
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
port: "{{ item.port | default(omit) }}"
|
port: "{{ item.port | default(omit) }}"
|
||||||
state: "{{ item.state | default('present') }}"
|
state: "{{ item.state | default('present') }}"
|
||||||
with_items: "{{ postgresql_users }}"
|
with_items: "{{ postgresql_users }}"
|
||||||
no_log: true
|
no_log: "{{ postgres_users_no_log }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ postgresql_user }}"
|
become_user: "{{ postgresql_user }}"
|
||||||
# See: https://github.com/ansible/ansible/issues/16048#issuecomment-229012509
|
# See: https://github.com/ansible/ansible/issues/16048#issuecomment-229012509
|
||||||
|
|
Loading…
Reference in New Issue