summaryrefslogtreecommitdiff
path: root/roles/install_monitoring/tasks/install_vnstat.yml
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-25 14:33:23 +0100
committerNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-25 14:33:23 +0100
commitcb3abd557431cc04aef5de1b302bcde25cd81c81 (patch)
tree4fd7058270e4e9d87ccf9778b85e573faccb2cbd /roles/install_monitoring/tasks/install_vnstat.yml
parent62a74b1ed442dc8c8a1224aa8edceeb3ed9c1b84 (diff)
added reload and restart handlers
Diffstat (limited to 'roles/install_monitoring/tasks/install_vnstat.yml')
-rw-r--r--roles/install_monitoring/tasks/install_vnstat.yml10
1 files changed, 2 insertions, 8 deletions
diff --git a/roles/install_monitoring/tasks/install_vnstat.yml b/roles/install_monitoring/tasks/install_vnstat.yml
index 0198403..9113331 100644
--- a/roles/install_monitoring/tasks/install_vnstat.yml
+++ b/roles/install_monitoring/tasks/install_vnstat.yml
@@ -48,17 +48,11 @@
copy:
src: vnstat
dest: /etc/nginx/sites-available/vnstat
- register: nginx_config
+ notify: reload nginx
- name: enable vnstat nginx config
file:
src: /etc/nginx/sites-available/vnstat
dest: /etc/nginx/sites-enabled/vnstat
state: link
-
-- name: reload nginx
- when: nginx_config.changed
- systemd:
- name: nginx.service
- state: reloaded
-
+ notify: reload nginx