33 lines
649 B
YAML
Raw Permalink Normal View History

2024-12-17 18:04:26 +01:00
---
- 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"