Skip to content

Commit

Permalink
Merge pull request #551 from ptomas-adacis/development
Browse files Browse the repository at this point in the history
postgresql_hide_passwords
  • Loading branch information
fidelio33b authored Nov 27, 2023
2 parents 5d31a09 + 3302429 commit f8c87f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion tasks/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
port: "{{postgresql_port}}"
state: "{{ item.state | default('present') }}"
login_user: "{{postgresql_admin_user}}"
no_log: true
no_log: "{{ postgresql_hide_passwords }}"
become: yes
become_user: "{{postgresql_admin_user}}"
with_items: "{{postgresql_users}}"
Expand Down

0 comments on commit f8c87f5

Please sign in to comment.