From 5681ad93206c3dcd5a1b1dabb4ef3779925a5b25 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Sun, 15 Oct 2023 07:57:08 +0200 Subject: [PATCH] restart nginx (not reload) to make sure base auth protection is activated/deactivated on changes --- roles/nginx/tasks/instance.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/nginx/tasks/instance.yml b/roles/nginx/tasks/instance.yml index 319a8c0..7526262 100644 --- a/roles/nginx/tasks/instance.yml +++ b/roles/nginx/tasks/instance.yml @@ -20,7 +20,7 @@ src: vhost.j2 dest: /etc/nginx/sites-available/{{ instance.name }}.conf mode: 0644 - notify: Reload nginx + notify: Restart nginx - name: Update nginx vhost repo - {{ instance.name }} ansible.builtin.git: @@ -36,7 +36,7 @@ src: /etc/nginx/sites-available/{{ instance.name }}.conf dest: /etc/nginx/sites-enabled/{{ instance.name }}.conf state: link - notify: Reload nginx + notify: Restart nginx # restart required, because file can be not available before - name: Protect nginx vhost user - {{ instance.name }}