33 lines
649 B
YAML
33 lines
649 B
YAML
|
---
|
|||
|
- 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"
|