aboutsummaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-05-22 23:58:05 -0400
committerMitch Riedstra <mitch@riedstra.us>2020-05-22 23:58:05 -0400
commit58cb82739d40047547847eccfeaa11c14c48db3c (patch)
treecc14019620e094c4c940d0ae7ef4e1503673a225 /tasks
parent5f97b9e837190ad432b1ddc0ac40a7c4e34619fc (diff)
downloadalpine-postgres-58cb82739d40047547847eccfeaa11c14c48db3c.tar.gz
alpine-postgres-58cb82739d40047547847eccfeaa11c14c48db3c.tar.xz
Fix netdata postgres configuration
Diffstat (limited to 'tasks')
-rw-r--r--tasks/main.yml5
1 files changed, 3 insertions, 2 deletions
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'