aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-09-19 20:43:49 -0400
committerMitch Riedstra <mitch@riedstra.us>2020-09-19 20:43:49 -0400
commit2ec4b6f5afd602d58313467271d89789f6d8c354 (patch)
treeb65b3e447b7ab1ad61594da8951d7488e21899de
parent58cb82739d40047547847eccfeaa11c14c48db3c (diff)
downloadalpine-postgres-2ec4b6f5afd602d58313467271d89789f6d8c354.tar.gz
alpine-postgres-2ec4b6f5afd602d58313467271d89789f6d8c354.tar.xz
Strip newline from the varHEADmaster
-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