From 1f4c0091977d8a266e8e87308faa3411e378cdec Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Mon, 18 Nov 2024 15:23:27 +0100 Subject: [PATCH] fix(nginx): restart nginx on any changes Signed-off-by: Matej Focko --- roles/nginx/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml index e3af105..e5d3ac8 100644 --- a/roles/nginx/tasks/main.yml +++ b/roles/nginx/tasks/main.yml @@ -10,6 +10,7 @@ mode: 0644 owner: root group: root + notify: Restart nginx - name: Install the SSL snippet ansible.builtin.template: @@ -18,6 +19,7 @@ mode: 0644 owner: root group: root + notify: Restart nginx - name: Install the default config ansible.builtin.copy: @@ -26,6 +28,7 @@ mode: 0644 owner: root group: root + notify: Restart nginx - name: Install the HTTP config ansible.builtin.template: @@ -34,6 +37,7 @@ mode: 0644 owner: root group: root + notify: Restart nginx - name: Enable $HOME shortcut ansible.builtin.template: @@ -42,6 +46,7 @@ mode: 0644 owner: root group: root + notify: Restart nginx - name: Allow httpd in homedirs in SELinux ansible.posix.seboolean: @@ -62,6 +67,7 @@ proxy_upstream: "{{ item.upstream }}" proxy_protocol: "{{ item.protocol }}" loop: "{{ nginx_reverse_proxy }}" + notify: Restart nginx # ‹httpd_can_network_relay› was not enough for the ubiquiti reverse proxy - name: Allow reverse proxy in SELinux