Skip to content

Commit

Permalink
hide plain-text passwords into execution output
Browse files Browse the repository at this point in the history
  • Loading branch information
ptomas-adacis committed Oct 31, 2023
1 parent d3ed99d commit f63cc86
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -858,3 +858,5 @@ postgresql_dnf_repository_gpgkey: "{{ postgresql_yum_repository_gpgkey }}"
postgresql_apt_py3_dependencies: ["python3-psycopg2", "locales"]
postgresql_apt_py2_dependencies: ["python-psycopg2", "python-pycurl", "locales"]
postgresql_apt_dependencies: "{{ postgresql_apt_py3_dependencies if 'python3' in ansible_python_interpreter|default('') else postgresql_apt_py2_dependencies }}"

postgresql_hide_passwords: false
1 change: 1 addition & 0 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
owner: "{{ postgresql_service_user }}"
group: "{{ postgresql_service_group }}"
mode: 0640
no_log: "{{ postgresql_hide_passwords }}"
register: postgresql_configuration_pt1

- name: PostgreSQL | Update configuration - pt. 2 (postgresql.conf)
Expand Down
1 change: 1 addition & 0 deletions tasks/schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
state: "{{ item.state | default('present') }}"
become: yes
become_user: "{{ postgresql_admin_user }}"
no_log: "{{ postgresql_hide_passwords }}"
with_items: "{{ postgresql_database_schemas }}"
when: postgresql_databases|length > 0

0 comments on commit f63cc86

Please sign in to comment.