Ansible Role - Certbot (for Let's Encrypt)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-role-certbot/tasks/install-with-snap.yml

27 lines
478 B

---
- name: Ensure snapd is installed.
package:
name: snapd
state: present
- name: Ensure snapd is enabled.
systemd:
name: snapd.socket
enabled: true
- name: Enable classic snap support.
file:
source: /var/lib/snapd/snap
dest: /snap
state: link
- name: Install certbot via snap.
snap:
name: certbot
classic: true
- name: Symlink certbot into place.
file:
source: /snap/bin/certbot
dest: /usr/bin/certbot
state: link