Browse Source

reload nginx after changing key or cert

Fabian Peter Hammerle 8 năm trước cách đây
mục cha
commit
357054b6d6
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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: