瀏覽代碼

Don't bounce Apache unless we actually need to.

Carl Meyer 9 年之前
父節點
當前提交
c3c2cbf096
共有 2 個文件被更改,包括 1 次插入3 次删除
  1. 1
    0
      roles/common/files/letsencrypt-gencert
  2. 0
    3
      roles/common/tasks/letsencrypt.yml

+ 1
- 0
roles/common/files/letsencrypt-gencert 查看文件

@@ -1,4 +1,5 @@
1 1
 #!/bin/bash
2
+service apache2 stop
2 3
 d="$1"
3 4
 for i in www mail autoconfig read news cloud git; do
4 5
   if (getent hosts $i.$1 > /dev/null); then

+ 0
- 3
roles/common/tasks/letsencrypt.yml 查看文件

@@ -33,9 +33,6 @@
33 33
 - name: Create live directory for LetsEncrypt cron job
34 34
   file: state=directory path=/etc/letsencrypt/live group=root owner=root
35 35
 
36
-- name: Stop Apache
37
-  service: name=apache2 state=stopped
38
-
39 36
 - name: Get an SSL certificate for {{ domain }} from Let's Encrypt
40 37
   script: letsencrypt-gencert {{ domain }} creates=/etc/letsencrypt/live/{{ domain }}/privkey.pem
41 38
   when: ansible_ssh_user != "vagrant"

Loading…
取消
儲存