Skip to content

Commit f8c87f5

Browse files
authored
Merge pull request ANXS#551 from ptomas-adacis/development
postgresql_hide_passwords
2 parents 5d31a09 + 3302429 commit f8c87f5

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

defaults/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -858,3 +858,5 @@ postgresql_dnf_repository_gpgkey: "{{ postgresql_yum_repository_gpgkey }}"
858858
postgresql_apt_py3_dependencies: ["python3-psycopg2", "locales"]
859859
postgresql_apt_py2_dependencies: ["python-psycopg2", "python-pycurl", "locales"]
860860
postgresql_apt_dependencies: "{{ postgresql_apt_py3_dependencies if 'python3' in ansible_python_interpreter|default('') else postgresql_apt_py2_dependencies }}"
861+
862+
postgresql_hide_passwords: false

tasks/configure.yml

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
owner: "{{ postgresql_service_user }}"
143143
group: "{{ postgresql_service_group }}"
144144
mode: 0640
145+
no_log: "{{ postgresql_hide_passwords }}"
145146
register: postgresql_configuration_pt1
146147

147148
- name: PostgreSQL | Update configuration - pt. 2 (postgresql.conf)

tasks/schemas.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
state: "{{ item.state | default('present') }}"
1313
become: yes
1414
become_user: "{{ postgresql_admin_user }}"
15+
no_log: "{{ postgresql_hide_passwords }}"
1516
with_items: "{{ postgresql_database_schemas }}"
1617
when: postgresql_databases|length > 0

tasks/users.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
port: "{{postgresql_port}}"
1414
state: "{{ item.state | default('present') }}"
1515
login_user: "{{postgresql_admin_user}}"
16-
no_log: true
16+
no_log: "{{ postgresql_hide_passwords }}"
1717
become: yes
1818
become_user: "{{postgresql_admin_user}}"
1919
with_items: "{{postgresql_users}}"

0 commit comments

Comments
 (0)