initial commit

This commit is contained in:
Ludovic Cartier
2024-12-17 18:04:26 +01:00
parent 81e2115868
commit 0bdd8faa16
4 changed files with 78 additions and 0 deletions

32
tasks/main.yml Normal file
View File

@ -0,0 +1,32 @@
---
- name: letsencrypt | apt update cache
apt:
update_cache: yes
cache_valid_time: 86400 #One day
- name: letsencrypt | install packages
apt:
name:
- certbot
state: present
- name: letsencrypt | copy configuration files
template:
src: "cli.ini.j2"
dest: "/etc/letsencrypt/cli.ini"
mode: "0644"
force: yes
backup: yes
- name: letsencrypt | create hook directory
file:
path: /usr/local/bin/letsencrypt/
state: directory
owner: root
group: root
- name: letsencrypt | copy renew hook
copy:
src: "renew-hook"
dest: "/usr/local/bin/letsencrypt/renew-hook"
mode: "0755"