Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgpass: do not output the contents to the log #469

Merged
merged 1 commit into from
Sep 13, 2023
Merged

Conversation

vitabaks
Copy link
Owner

@vitabaks vitabaks commented Sep 13, 2023

do not output the contents (passwords) to the ansible log for task "Configure a password"

To hide the contents in diff when using the ansible ansible.builtin.copy, set the no_log parameter to true.

Fixed:

TASK [pgpass : Configure a password file (/var/lib/postgresql/.pgpass)] ********
--- before
+++ after: /root/.ansible/tmp/ansible-local-30xva_jds2/tmpbi95bhut
@@ -0,0 +1,2 @@
+localhost:5432:*:postgres:SECRET-PASSWORD
+192.168.12.216:5432:*:postgres:SECRET-PASSWORD2
changed: [192.168.12.216]

@vitabaks vitabaks self-assigned this Sep 13, 2023
@vitabaks vitabaks merged commit bf5e48d into master Sep 13, 2023
18 checks passed
@vitabaks vitabaks deleted the pgpass-nolog branch September 13, 2023 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant