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