ansible-role-certbot/tasks/install-with-package.yml

13 lines
306 B
YAML

---
- name: Ensure package repo is present
apt_repository:
repo: ppa:certbot/certbot
when: ansible_distribution == "Ubuntu"
- name: Install Certbot.
package: "name={{ certbot_package }} state=present"
- name: Set Certbot script variable.
set_fact:
certbot_script: "{{ certbot_package }}"