Skip to content

Commit

Permalink
restart nginx (not reload) to make sure base auth protection is activ…
Browse files Browse the repository at this point in the history
…ated/deactivated on changes
  • Loading branch information
alexandermeindl committed Oct 15, 2023
1 parent 6d0d8b1 commit 5681ad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/nginx/tasks/instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down

0 comments on commit 5681ad9

Please sign in to comment.