Prechádzať zdrojové kódy

reload nginx after changing key or cert

Fabian Peter Hammerle 8 rokov pred
rodič
commit
357054b6d6
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  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: