From 9a198a9ac1705ca831fd6f757c6cc9b5b6d74bf3 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Tue, 6 Sep 2016 11:21:51 +0200 Subject: Reworks lets encrypt script. It now tries to install certbot instead os letsencrypt as it is no longer available on arch linux under that name. It also adds --expand to the commandline to allow adding new cnames to the certificate. --- roles/lets_encrypt/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles') diff --git a/roles/lets_encrypt/tasks/main.yml b/roles/lets_encrypt/tasks/main.yml index 755f58d..066cda8 100644 --- a/roles/lets_encrypt/tasks/main.yml +++ b/roles/lets_encrypt/tasks/main.yml @@ -1,6 +1,6 @@ - name: Install lets-encrypt become: yes - pacman: name=letsencrypt state=present update_cache=yes + pacman: name=certbot state=present update_cache=yes - name: stop webserver become: yes @@ -9,7 +9,7 @@ - name: validate domains become: yes - command: letsencrypt certonly --standalone --email dennis@brentj.es --agree-tos {% for domain in lets_encrypt_domains %}-d {{ domain }} {% endfor %} + command: certbot certonly --standalone --email dennis@brentj.es --agree-tos --expand {% for domain in lets_encrypt_domains %}-d {{ domain }} {% endfor %} tags: - production_only -- cgit v1.2.3-70-g09d2