Explorar o código

reload nginx after changing key or cert

Fabian Peter Hammerle %!s(int64=8) %!d(string=hai) anos
pai
achega
357054b6d6
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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: