From 71caecc508599c049bafbd1852f462f6b8ce2036 Mon Sep 17 00:00:00 2001 From: Alexander Dietrich Date: Wed, 7 Nov 2018 21:48:36 +0100 Subject: [PATCH] Check for certbot-auto before downloading --- roles/certbot/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/certbot/tasks/main.yml b/roles/certbot/tasks/main.yml index d03886f..4c1c70a 100644 --- a/roles/certbot/tasks/main.yml +++ b/roles/certbot/tasks/main.yml @@ -9,11 +9,17 @@ - /etc/letsencrypt/renewal-hooks/pre - /var/www/_acme-challenge +- name: check for certbot-auto + stat: + path: /usr/local/sbin/certbot-auto + register: certbot + - name: download certbot-auto get_url: url: "https://dl.eff.org/certbot-auto" dest: /usr/local/sbin mode: 0755 + when: not certbot.stat.exists - name: copy cli.ini copy: