diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-14 12:18:25 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-14 12:18:25 +0200 |
commit | 72e353a3bfd3ca26dd454d805fa95dfcc7ace0f5 (patch) | |
tree | 8c6b51bacf935407ce999faac137f1c41ca6187f /roles/letsencrypt/tasks/certbot.yml | |
parent | update task names & add more logging (diff) | |
download | infra-ansible-72e353a3bfd3ca26dd454d805fa95dfcc7ace0f5.tar.gz infra-ansible-72e353a3bfd3ca26dd454d805fa95dfcc7ace0f5.zip |
letsencrypt: split tasks into different files
Diffstat (limited to 'roles/letsencrypt/tasks/certbot.yml')
-rw-r--r-- | roles/letsencrypt/tasks/certbot.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/roles/letsencrypt/tasks/certbot.yml b/roles/letsencrypt/tasks/certbot.yml new file mode 100644 index 0000000..2a7664e --- /dev/null +++ b/roles/letsencrypt/tasks/certbot.yml @@ -0,0 +1,28 @@ +# Instructions are from +# https://certbot.eff.org/instructions?ws=nginx&os=snap&tab=wildcard + +- name: Install Certbot + become: true + block: + - name: Install snapd + ansible.builtin.apt: + install_recommends: false + name: snapd + + - name: Install Certbot + community.general.snap: + classic: true + name: certbot + + - name: Confirm plugin containment level + ansible.builtin.command: snap set certbot trust-plugin-with-root=ok + + - name: Install Certbot DigitalOcean plugin + community.general.snap: + name: certbot-dns-digitalocean + + - name: Create Certbot symlink in /usr/bin + ansible.builtin.file: + src: /snap/bin/certbot + dest: /usr/bin/certbot + state: link |