infra/infra/static-vultr/ansible/playbooks/lets-encrypt.yml

17 lines
407 B
YAML
Raw Normal View History

2024-04-29 04:25:03 +00:00
---
- 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 }}"