diff options
author | clyhtsuriva <aimeric@adjutor.xyz> | 2025-03-19 21:23:18 +0100 |
---|---|---|
committer | clyhtsuriva <aimeric@adjutor.xyz> | 2025-03-19 21:23:18 +0100 |
commit | 503de953a9be6d8d57495ef400f1341b3888f3f0 (patch) | |
tree | 29a7041a85ba9c90967ffff61115ed008f7d6c6a /ansible/roles/nginx | |
parent | c1daa61121ad6800bff06e9b194d402a511d67a8 (diff) |
ansible: add notifys to restart ufw w/ handlers
Diffstat (limited to 'ansible/roles/nginx')
-rw-r--r-- | ansible/roles/nginx/handlers/main.yml | 6 | ||||
-rw-r--r-- | ansible/roles/nginx/tasks/update_nginx.yml | 6 |
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 ... |