2024-12-17 18:04:26 +01:00

33 lines
649 B
YAML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- 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"