From 2083a8121e8265f92af348a068ec33a3074654a3 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 31 Aug 2017 14:26:05 +0200 Subject: [PATCH] Fix: The environment needs to be loaded into the container Signed-off-by: Knut Ahlers --- tasks/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 95cb2fc..7501349 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -39,8 +39,6 @@ [Service] RemainAfterExit=yes - EnvironmentFile=-/etc/netdata/environment - ExecStartPre=/usr/bin/docker pull quay.io/luzifer/netdata ExecStartPre=-/usr/bin/docker rm -f netdata @@ -50,6 +48,7 @@ -v /etc/netdata:/override:ro \ -v /var/run/docker.sock:/var/run/docker.sock \ -p 19999:19999 \ + --env-file=/etc/netdata/environment \ --name=netdata \ quay.io/luzifer/netdata:{{ version }}