diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-25 14:33:23 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-25 14:33:23 +0100 |
commit | cb3abd557431cc04aef5de1b302bcde25cd81c81 (patch) | |
tree | 4fd7058270e4e9d87ccf9778b85e573faccb2cbd /roles/install_nginx | |
parent | 62a74b1ed442dc8c8a1224aa8edceeb3ed9c1b84 (diff) |
added reload and restart handlers
Diffstat (limited to 'roles/install_nginx')
-rw-r--r-- | roles/install_nginx/handlers/main.yml | 5 | ||||
-rw-r--r-- | roles/install_nginx/tasks/main.yml | 1 |
2 files changed, 6 insertions, 0 deletions
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: |