17 lines
461 B
YAML
17 lines
461 B
YAML
---
|
|
- name: Installer Certbot
|
|
ansible.builtin.apt:
|
|
name:
|
|
- certbot
|
|
- python3-certbot-nginx
|
|
state: present
|
|
|
|
- name: Obtenir ou renouveler le certificat Let's Encrypt
|
|
ansible.builtin.command:
|
|
cmd: >-
|
|
certbot --nginx --non-interactive --agree-tos
|
|
--email {{ groupe_meditation_certbot_email }}
|
|
-d {{ groupe_meditation_domain }}
|
|
args:
|
|
creates: "/etc/letsencrypt/live/{{ groupe_meditation_domain }}/fullchain.pem"
|
|
|