Ensure debian-like distributions get the latest version of certbot

- Remove the non-standard Ubuntu 16.04 package and script name (letsencrypt vs certbot)
- Add the EFF-maintained certbot PPA
This commit is contained in:
Jonathan Hanson 2019-02-16 14:44:05 -08:00
parent 60d805f41b
commit ae4e10c5a4
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,9 @@
---
- name: Ensure package repo is present
apt_repository:
repo: ppa:certbot/certbot
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Debian"
- name: Install Certbot.
package: "name={{ certbot_package }} state=present"

View File

@ -1,2 +0,0 @@
---
certbot_package: letsencrypt