2018-11-03 17:38:00 +01:00
|
|
|
---
|
2020-03-25 16:59:42 +01:00
|
|
|
- name: install certbot
|
|
|
|
apt:
|
|
|
|
name: certbot
|
|
|
|
cache_valid_time: 86400
|
|
|
|
|
|
|
|
- name: create webroot directory
|
2018-11-03 17:38:00 +01:00
|
|
|
file:
|
2020-03-25 16:59:42 +01:00
|
|
|
path: /var/www/_acme-challenge
|
2018-11-03 17:38:00 +01:00
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: copy cli.ini
|
|
|
|
copy:
|
|
|
|
src: cli.ini
|
|
|
|
dest: /etc/letsencrypt/
|
|
|
|
|
|
|
|
- name: populate service facts
|
|
|
|
service_facts:
|
|
|
|
|
|
|
|
- name: copy reload-nginx hook
|
|
|
|
copy:
|
|
|
|
src: reload-nginx
|
|
|
|
dest: /etc/letsencrypt/renewal-hooks/post/
|
|
|
|
mode: 0755
|
|
|
|
when: "'nginx' in services"
|