From 503de953a9be6d8d57495ef400f1341b3888f3f0 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Wed, 19 Mar 2025 21:23:18 +0100 Subject: ansible: add notifys to restart ufw w/ handlers --- ansible/roles/nginx/handlers/main.yml | 6 ++++++ ansible/roles/nginx/tasks/update_nginx.yml | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 ansible/roles/nginx/handlers/main.yml (limited to 'ansible/roles/nginx') 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 ... -- cgit v1.2.3