aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/nginx/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/nginx/handlers')
-rw-r--r--ansible/roles/nginx/handlers/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/ansible/roles/nginx/handlers/main.yml b/ansible/roles/nginx/handlers/main.yml
new file mode 100644
index 0000000..039e72b
--- /dev/null
+++ b/ansible/roles/nginx/handlers/main.yml
@@ -0,0 +1,11 @@
+- name: systemctl reload nginx
+ become: yes
+ systemd:
+ name: nginx
+ state: reloaded
+
+- name: systemctl restart nginx
+ become: yes
+ systemd:
+ name: nginx
+ state: restarted