ansible-role-certbot/tasks/install-with-package.yml
Jonathan Hanson ae4e10c5a4 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
2020-03-26 17:10:21 -07:00

13 lines
342 B
YAML

---
- 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"
- name: Set Certbot script variable.
set_fact:
certbot_script: "{{ certbot_package }}"