aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/nginx')
-rw-r--r--ansible/roles/nginx/handlers/main.yml6
-rw-r--r--ansible/roles/nginx/tasks/update_nginx.yml6
2 files changed, 6 insertions, 6 deletions
diff --git a/ansible/roles/nginx/handlers/main.yml b/ansible/roles/nginx/handlers/main.yml
new file mode 100644
index 0000000..58ffefd
--- /dev/null
+++ b/ansible/roles/nginx/handlers/main.yml
@@ -0,0 +1,6 @@
+---
+- name: Restart Nginx
+ ansible.builtin.service:
+ name: nginx
+ state: restarted
+...
diff --git a/ansible/roles/nginx/tasks/update_nginx.yml b/ansible/roles/nginx/tasks/update_nginx.yml
index 4813e6c..ffe2725 100644
--- a/ansible/roles/nginx/tasks/update_nginx.yml
+++ b/ansible/roles/nginx/tasks/update_nginx.yml
@@ -16,10 +16,4 @@
name: nginx
state: started
enabled: true
-
- handlers:
- - name: Restart nginx
- ansible.builtin.service:
- name: nginx
- state: restarted
...