Check for certbot-auto before downloading

This commit is contained in:
Alexander Dietrich 2018-11-07 21:48:36 +01:00
parent 8766f7b48c
commit 71caecc508

View file

@ -9,11 +9,17 @@
- /etc/letsencrypt/renewal-hooks/pre - /etc/letsencrypt/renewal-hooks/pre
- /var/www/_acme-challenge - /var/www/_acme-challenge
- name: check for certbot-auto
stat:
path: /usr/local/sbin/certbot-auto
register: certbot
- name: download certbot-auto - name: download certbot-auto
get_url: get_url:
url: "https://dl.eff.org/certbot-auto" url: "https://dl.eff.org/certbot-auto"
dest: /usr/local/sbin dest: /usr/local/sbin
mode: 0755 mode: 0755
when: not certbot.stat.exists
- name: copy cli.ini - name: copy cli.ini
copy: copy: