certbot installation
This commit is contained in:
parent
34923bd5b7
commit
2133c1ff3e
19
infra/static-vultr/ansible/tasks/certbot-installation.yml
Normal file
19
infra/static-vultr/ansible/tasks/certbot-installation.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
- name: Install required packages
|
||||||
|
pip:
|
||||||
|
name:
|
||||||
|
- certbot
|
||||||
|
- certbot-nginx
|
||||||
|
executable: pip3
|
||||||
|
- name: Register
|
||||||
|
shell: |
|
||||||
|
certbot -n register --agree-tos -m dev@shockrah.xyz,temper@temper.tv
|
||||||
|
touch /etc/letsencrypt/.registered
|
||||||
|
args:
|
||||||
|
creates: /etc/letsencrypt/.registered
|
||||||
|
- name: Setup cron job for renewal every monday at 1 am
|
||||||
|
cron:
|
||||||
|
name: certbot-renewal
|
||||||
|
job: "bash -lc 'certbot -q renew'"
|
||||||
|
minute: 0
|
||||||
|
hour: 1
|
||||||
|
weekday: 1
|
Loading…
Reference in New Issue
Block a user