Преглед изворни кода

Don't bounce Apache unless we actually need to.

Carl Meyer пре 8 година
родитељ
комит
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…
Откажи
Сачувај