From 58cb82739d40047547847eccfeaa11c14c48db3c Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Fri, 22 May 2020 23:58:05 -0400 Subject: Fix netdata postgres configuration --- tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tasks/main.yml') diff --git a/tasks/main.yml b/tasks/main.yml index cf8d734..78ebf13 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,3 +1,4 @@ +--- - name: Install Postgres apk: name: postgresql @@ -41,12 +42,12 @@ - name: Write postgres configuration for Netdata copy: content: | + --- socket: name: 'local' user: 'postgres' database: 'postgres' - {% if postgres_passwd is defined %}password: {{postgres_passwd}} - {% endif %} + {% if postgres_passwd is defined %}password: {{postgres_passwd}}{% endif %} mode: '0600' dest: /opt/netdata/etc/netdata/python.d/postgres.conf owner: 'netdata' -- cgit v1.2.3