Skip to content

Commit

Permalink
Adding no_log to PSQL (#114)
Browse files Browse the repository at this point in the history
* spog-ui update

Signed-off-by: Rajan Ravi <[email protected]>
---------

Signed-off-by: Rajan Ravi <[email protected]>
Co-authored-by: Rajan Ravi <[email protected]>
  • Loading branch information
mrrajan and Rajan Ravi authored Oct 28, 2024
1 parent e41f91d commit 585de99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/tpa_single_node/tasks/guac/init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
-v db_password={{ tpa_single_node_pg_user_passwd }} \
-f {{ tpa_single_node_config_dir }}/init-db.sql"
changed_when: false
no_log: true

- name: Testing DB guac to make sure it is available
ansible.builtin.command: "psql postgresql://{{ tpa_single_node_pg_user }}:{{ tpa_single_node_pg_user_passwd }}@\
{{ tpa_single_node_pg_host }}:{{ tpa_single_node_pg_port }}/{{ tpa_single_node_pg_db }} -c 'SELECT 1'"
register: select_output
changed_when: false
no_log: true
1 change: 1 addition & 0 deletions roles/tpa_single_node/tasks/infra/postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
password: "{{ tpa_single_node_pg_user_passwd }}"
become: yes
become_user: postgres
no_log: true

- name: "Grant db user access to app db"
postgresql_privs:
Expand Down

0 comments on commit 585de99

Please sign in to comment.