- Debian 9 "Stretch" is now supported. Instead of using the client from the source, on Debian 9 the Certbot client will be pulled via APT. Note! This means that the version pinning configuration variables in this role have no effect when deploying on Debian 9. Thanks to @bjoas for this addition.
- Fix regression relating to requesting
www.
domains introduced after 0.6.0. The regression caused awww.
domain not to be requested even if explicitly settingletsencrypt_request_www
totrue
. Note that this functionality used to work after the release of 0.6.0 AFAIK, but was possibly broken by a behaviour change in Ansible 2.1.
- Required Ansible version is now 2.x - see #20
- You can now specify all the parameters given to
certbot
by overriding the new variableletsencrypt_certbot_default_args
. If you just want to add a parameter, use the oldletsencrypt_certbot_args
variable to add to the defaults already in place. Thanks for @robbyoconnor for this patch.
- Cloning Certbot from GitHub was using
depth: 1
for a quicker clone. This was causing problems in changing the version of Certbot later. Fixed by removing thedepth
argument. Thanks @brennen for reporting this issue.
- Apache2 is no longer a dependency of this role and will not be installed. Thanks to @gronke for this patch. This also means
letsencrypt_pause_services
is an empty list by default. Make sure to add your webserver there so that it will be paused. A missing not installed service will not stop the role from executing so you can safely run this role before your main application role.
- Settings
letsencrypt_force_renew
tofalse
caused Certbot to fail in some situations. Now this is fixed by passing Certbot the flag--keep-until-expiring
, in the case that forced renewal is not desired. If the certificate is not due for renewal, nothing will be done by Certbot but no error will be raised either.
- Certbot now runs with the
--non-interactive
flag, which should protect from Ansible hanging on unexpected prompts. Note! This flag was added in Certbot 0.6.0 which is the lowest version this role can thus support. - Default version of Certbot installed is now v0.8.1, the latest release as of now. Master branch can have unexpected breakages. Due to this, the cli flag
--no-self-upgrade
was also added to stop Certbot from automatically updating itself.
- There was an error setting
letsencrypt_certbot_args
in 0.4.0. Thanks @gronke for a fast fix.
- Allow configuring the certbot version with a new variable
letsencrypt_certbot_version
. This defaults to master. Thanks @gronke for this patch! - Allow configuring what services are stopped when requesting a cert via new variable
letsencrypt_pause_services
. This is a list of items which by default includesapache2
. You can set this variable empty to skip pausing services. Thanks @gronke for this patch! - Allow configuring the
--renew-by-default
command line flag to Certbot. By default this is enabled, switch it off by settingletsencrypt_force_renew
tofalse
. Thanks @gronke. - Additional Certbot command line args can now be passed in using the list variable
letsencrypt_certbot_args
. Thanks @gronke for the addition.
- Stability changed to "beta" to be less scary :)
- Allow specifying
letsencrypt_request_www
to disable requestingwww.
cert automatically. By default it is requested.
- Automatically add a
www.
subdomain to the certificate.
- LetsEncrypt client is now Certbot. Adjusted this role to match the new renamed repository.
Initial release.