From b92d0a07c0663f44e2a8493c8910d423f4243960 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Sat, 14 May 2016 21:10:05 +0300 Subject: [PATCH] And suddenly, without warning, letsencrypt renamed their repo... Now it is certbot/certbot. --- README.md | 7 ++++--- tasks/cert.yaml | 2 +- tasks/client.yaml | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d120006..c96e71d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Stability: alpha. ### What does it do? -This role will pull in the official [LetsEncrypt client](https://github.com/letsencrypt/letsencrypt), install it and issue or renew a certificate with your chosen domain. +This role will pull in the official [Certbot client](https://github.com/certbot/certbot), install it and issue or renew a certificate with your chosen domain. Currently the role is of limited functionality as follows: * Tested on Ubuntu 14.04 @@ -18,8 +18,8 @@ PR's are welcome to include more functionality. #### More detail -* The client will be installed in `/opt/letsencrypt` as root -* Each run will pull in the latest LetsEncrypt client code +* The client will be installed in `/opt/certbot` as root +* Each run will pull in the latest Certbot client code * The role will stop Apache2 before requesting a cert * `certonly` mode is used, which means no automatic web server installation * After cert issuing, you can find it in `/etc/letsencrypt/live/` @@ -33,6 +33,7 @@ PR's are welcome to include more functionality. * Note! If this role fails in the cert request part, you will have a stopped Apache2! * If the cert has been requested before, this role will automatically try to renew it, if possible. +* A `www.` subdomain will automatically be requested along with the certificate. ### Requirements diff --git a/tasks/cert.yaml b/tasks/cert.yaml index bc2b04a..7579d87 100644 --- a/tasks/cert.yaml +++ b/tasks/cert.yaml @@ -2,6 +2,6 @@ - name: Stop Apache2 service: name=apache2 state=stopped - name: Obtain or renew cert for domain - shell: executable=/bin/bash cd /opt/letsencrypt && ./letsencrypt-auto certonly -m {{ letsencrypt_email }} --domains {{ letsencrypt_domain }},www.{{ letsencrypt_domain }} --agree-tos --renew-by-default --standalone --expand + shell: executable=/bin/bash cd /opt/certbot && ./certbot-auto certonly -m {{ letsencrypt_email }} --domains {{ letsencrypt_domain }},www.{{ letsencrypt_domain }} --agree-tos --renew-by-default --standalone --expand - name: Start Apache2 service: name=apache2 state=started diff --git a/tasks/client.yaml b/tasks/client.yaml index 7544d56..5f4a1af 100644 --- a/tasks/client.yaml +++ b/tasks/client.yaml @@ -16,4 +16,4 @@ - name: Python cryptography module pip: name=cryptography - name: Letsencrypt Python client - git: dest=/opt/letsencrypt clone=yes repo=https://github.com/letsencrypt/letsencrypt force=yes + git: dest=/opt/certbot clone=yes repo=https://github.com/certbot/certbot force=yes