initial commit
This commit is contained in:
32
tasks/main.yml
Normal file
32
tasks/main.yml
Normal 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"
|
Reference in New Issue
Block a user