From fa9a54bc6ca0d09c19172c81bb46a494ce1390bc Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 10 Jan 2017 14:34:47 +0100 Subject: [PATCH] Nginx: properly enable fcgi service for Munin --- nginx/tasks/munin_vhost.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nginx/tasks/munin_vhost.yml b/nginx/tasks/munin_vhost.yml index e56844e6..999dc8d6 100644 --- a/nginx/tasks/munin_vhost.yml +++ b/nginx/tasks/munin_vhost.yml @@ -27,10 +27,14 @@ src: init.d/spawn-fcgi-munin-graph dest: /etc/init.d/ mode: "755" + register: install_spawn_fcgi_munin_graph + +- name: Reload systemd + command: systemctl daemon-reload + when: install_spawn_fcgi_munin_graph | changed - name: Ensure that Munin-fcgi is started/stopped correctly service: name: spawn-fcgi-munin-graph enabled: yes state: started - notify: restart spawn-fcgi-munin-graph