aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 78ebf13..646b35b 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -31,7 +31,7 @@
copy:
content: |
# hostname:port:database:username:password
- *:*:*:postgres:{{postgres_passwd}}
+ *:*:*:postgres:{{postgres_passwd | replace('\n', '')}}
dest: '/root/.pgpass'
mode: '0600'
when: postgres_passwd is defined