Commit 43390c5b authored by PizZaKatZe's avatar PizZaKatZe
Browse files

Reload Nginx config instead of restarting the whole thing

parent 5925a01c
......@@ -9,7 +9,7 @@
- jitsi-videobridge2
- prosody
- name: Restart nginx
- name: Reload nginx
systemd:
name: nginx.service
state: restarted
state: reloaded
# vim: ts=2 sw=2 et
---
# tasks file for jitsi
# Tasks file for Jitsi Meet
# inspired by:
# * https://fatiherikci.com/en/install-jitsi-meet-on-debian-10/
# * https://github.com/UdelaRInterior/ansible-role-jitsi-meet
......@@ -144,7 +145,7 @@
regex: 'add_header Strict-Transport-Security'
line: ' #add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;'
when: env == "staging"
notify: Restart nginx
notify: Reload nginx
- name: Enable HSTS in production environment
lineinfile:
......@@ -152,7 +153,7 @@
regex: 'add_header Strict-Transport-Security'
line: ' add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;'
when: env != "staging"
notify: Restart nginx
notify: Reload nginx
- name: Issue TLS certificate
shell: "echo 'webmaster@{{ domain }}.conf' | /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment