ansible/roles/certbot/tasks/main.yml
Julien Riou c610083d3c
Some checks failed
/ ansible-docsmith (push) Successful in 23s
/ molecule (certbot) (push) Failing after 47s
/ molecule (galene) (push) Failing after 59s
/ molecule (golang) (push) Has been cancelled
Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
2026-02-17 09:43:29 +01:00

13 lines
371 B
YAML

---
- name: Install packages
ansible.builtin.apt:
name: certbot
update_cache: true
- name: Request certificate
ansible.builtin.command:
cmd: >-
certbot certonly --standalone -n --agree-tos
--email {{ certbot_email }} -d {{ certbot_domain }}
creates: /etc/letsencrypt/live/{{ certbot_domain }}/fullchain.pem
when: not certbot_molecule