From 2ec4b6f5afd602d58313467271d89789f6d8c354 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sat, 19 Sep 2020 20:43:49 -0400 Subject: Strip newline from the var --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3