Sfoglia il codice sorgente

reload nginx after changing key or cert

Fabian Peter Hammerle 8 anni fa
parent
commit
357054b6d6
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      tasks/vhosts.yml

+ 2 - 0
tasks/vhosts.yml

@@ -22,6 +22,8 @@
     loop_var: vhost
   with_items: '{{nginx_vhosts|default([])}}'
   register: vhosts_x509
+  # http://unix.stackexchange.com/questions/247418/do-i-need-to-restart-nginx-if-i-renew-my-security-certificates#comment548097_247460
+  notify: reload nginx
 
 - name: Download ssl certificates.
   fetch: