You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
486 B
30 lines
486 B
3 years ago
|
---
|
||
|
- hosts: all
|
||
|
tasks:
|
||
|
|
||
|
- apt:
|
||
|
update_cache: yes
|
||
|
|
||
|
- package:
|
||
|
name:
|
||
|
- certbot
|
||
|
|
||
3 years ago
|
- service:
|
||
|
name: nginx
|
||
|
state: stopped
|
||
|
|
||
3 years ago
|
- command: >
|
||
|
certbot certonly --standalone --preferred-challenges http
|
||
|
-n --agree-tos -m {{ lets_encrypt_email }}
|
||
|
-d {{ item }}
|
||
|
loop: "{{ lets_encrypt_tlds }}"
|
||
|
|
||
3 years ago
|
- service:
|
||
|
name: nginx
|
||
|
state: started
|
||
|
|
||
3 years ago
|
- template:
|
||
|
src: renew-certs
|
||
|
dest: /etc/cron.daily/renew-certs
|
||
|
mode: +x
|