From cb3abd557431cc04aef5de1b302bcde25cd81c81 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Sat, 25 Mar 2017 14:33:23 +0100 Subject: added reload and restart handlers --- roles/install_nginx/handlers/main.yml | 5 +++++ roles/install_nginx/tasks/main.yml | 1 + 2 files changed, 6 insertions(+) create mode 100644 roles/install_nginx/handlers/main.yml (limited to 'roles/install_nginx') diff --git a/roles/install_nginx/handlers/main.yml b/roles/install_nginx/handlers/main.yml new file mode 100644 index 0000000..04f4ea0 --- /dev/null +++ b/roles/install_nginx/handlers/main.yml @@ -0,0 +1,5 @@ +--- +- name: reload nginx + systemd: + name: nginx.service + state: reloaded diff --git a/roles/install_nginx/tasks/main.yml b/roles/install_nginx/tasks/main.yml index 5b8fe65..1e21bec 100644 --- a/roles/install_nginx/tasks/main.yml +++ b/roles/install_nginx/tasks/main.yml @@ -8,6 +8,7 @@ copy: src: nginx.conf dest: /etc/nginx/nginx.conf + notify: reload nginx - name: add sites-available folder file: -- cgit v1.2.3-54-g00ecf