Lest encrypt basic playbook for setup
This commit is contained in:
parent
31f558c4bf
commit
34923bd5b7
16
infra/static-vultr/ansible/playbooks/lets-encrypt.yml
Normal file
16
infra/static-vultr/ansible/playbooks/lets-encrypt.yml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
- hosts: webhost
|
||||
remote_user: root
|
||||
vars:
|
||||
websites:
|
||||
- shockrah.xyz
|
||||
- resume.shockrah.xyz
|
||||
- temper.tv
|
||||
tasks:
|
||||
- name: Ensure certbot is setup
|
||||
import_tasks: ../tasks/certbot-installation.yml
|
||||
- name: Get certificate
|
||||
command: certbot -n --nginx certonly -d {{ item }}
|
||||
args:
|
||||
creates: "/etc/letsencrypt/live/{{ item }}"
|
||||
loop: "{{ websites }}"
|
Loading…
Reference in New Issue
Block a user