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.
28 lines
518 B
28 lines
518 B
- hosts: ramble-hard
|
|
tasks:
|
|
|
|
- name: install certbot
|
|
package:
|
|
name:
|
|
- certbot
|
|
|
|
- name: stop nginx
|
|
service:
|
|
name: nginx
|
|
state: stopped
|
|
|
|
- command: >
|
|
certbot certonly --standalone --preferred-challenges http
|
|
-n --agree-tos -m {{ lets_encrypt_email }}
|
|
-d {{ item }}
|
|
loop: "{{ lets_encrypt_tlds }}"
|
|
|
|
- service:
|
|
name: nginx
|
|
state: started
|
|
|
|
- template:
|
|
src: lets_encrypt/renew-certs
|
|
dest: /etc/cron.daily/renew-certs
|
|
mode: +x
|