aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/letsencrypt
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-09-01 00:26:13 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-09-01 00:26:13 +0200
commita89e16c44ee6d038e4f4cf435902e66558cc5cf4 (patch)
tree745201ec1b6b2e6f5239cf4feaf790fb4a138654 /roles/letsencrypt
parentapt: don't remove after autoremoving dependencies (diff)
downloadinfra-ansible-a89e16c44ee6d038e4f4cf435902e66558cc5cf4.tar.gz
infra-ansible-a89e16c44ee6d038e4f4cf435902e66558cc5cf4.zip
sort module args, add missing state args, etc.
Diffstat (limited to '')
-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: