Lest encrypt basic playbook for setup

This commit is contained in:
shockrah 2024-04-28 21:25:03 -07:00
parent 31f558c4bf
commit 34923bd5b7

View 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 }}"