mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-27 09:52:22 +00:00
22 lines
446 B
YAML
22 lines
446 B
YAML
|
---
|
||
|
- name: Install basic APT packages
|
||
|
apt:
|
||
|
update_cache: true
|
||
|
name:
|
||
|
- certbot
|
||
|
- python3-certbot-nginx
|
||
|
register: pkg_result
|
||
|
retries: 3
|
||
|
until: pkg_result is succeeded
|
||
|
|
||
|
- name: Create /etc/letsencrypt/conf.d
|
||
|
file:
|
||
|
path: /etc/letsencrypt/conf.d
|
||
|
state: directory
|
||
|
|
||
|
- name: Add Certbot configuration
|
||
|
template:
|
||
|
src: "letsencrypt/conf.d/nk20.ini.j2"
|
||
|
dest: "/etc/letsencrypt/conf.d/nk20.ini"
|
||
|
mode: 0644
|