aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/letsencrypt/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/letsencrypt/tasks')
-rw-r--r--roles/letsencrypt/tasks/certbot.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/letsencrypt/tasks/certbot.yml b/roles/letsencrypt/tasks/certbot.yml
index 2a7664e..2eeeda5 100644
--- a/roles/letsencrypt/tasks/certbot.yml
+++ b/roles/letsencrypt/tasks/certbot.yml
@@ -6,13 +6,15 @@
block:
- name: Install snapd
ansible.builtin.apt:
- install_recommends: false
name: snapd
+ state: present
+ install_recommends: false
- name: Install Certbot
community.general.snap:
- classic: true
name: certbot
+ state: present
+ classic: true
- name: Confirm plugin containment level
ansible.builtin.command: snap set certbot trust-plugin-with-root=ok
@@ -20,6 +22,7 @@
- name: Install Certbot DigitalOcean plugin
community.general.snap:
name: certbot-dns-digitalocean
+ state: present
- name: Create Certbot symlink in /usr/bin
ansible.builtin.file: