mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
- Remove the non-standard Ubuntu 16.04 package and script name (letsencrypt vs certbot) - Add the EFF-maintained certbot PPA
13 lines
342 B
YAML
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 }}"
|