mirror of
https://github.com/balkian/gists.git
synced 2024-11-22 01:32:29 +00:00
Add 'repos/015554b095b5525e26489c4db33e2270/' from commit 'b9771f67b3780debf36024c0a1fd9cd2e0ed7b35'
git-subtree-dir: repos/015554b095b5525e26489c4db33e2270 git-subtree-mainline:0aba666e37
git-subtree-split:b9771f67b3
This commit is contained in:
commit
9d5cf6d96e
20
repos/015554b095b5525e26489c4db33e2270/letsencrypt.yml
Normal file
20
repos/015554b095b5525e26489c4db33e2270/letsencrypt.yml
Normal file
@ -0,0 +1,20 @@
|
||||
- hosts: all
|
||||
name: "Let's encrypt"
|
||||
tasks:
|
||||
- name: Add certbot to crontab
|
||||
cron: name="Letsencrypt certificates" month="*/2" minute=5 hour=0
|
||||
cron_file="letsencrypt-autoupdate"
|
||||
user="root"
|
||||
job="/usr/bin/docker run -t --rm --name certbot \
|
||||
-v '/etc/letsencrypt/:/etc/letsencrypt' \
|
||||
-v '/var/lib/letsencrypt:/var/lib/letsencrypt' \
|
||||
-v '/var/www/letsencrypt:/webroot' \
|
||||
quay.io/letsencrypt/letsencrypt:latest auth --webroot -w /webroot/ \
|
||||
-m {{ le_admin }} \
|
||||
--expand --agree-tos --keep --quiet \
|
||||
-d {{ le_domains | join(' -d ') }}"
|
||||
vars:
|
||||
le_admin: admin@admin.com
|
||||
le_domains:
|
||||
- admin.com
|
||||
become: yes
|
Loading…
Reference in New Issue
Block a user