2024-04-29 04:25:03 +00:00
|
|
|
---
|
|
|
|
- hosts: webhost
|
|
|
|
remote_user: root
|
|
|
|
vars:
|
|
|
|
websites:
|
|
|
|
- shockrah.xyz
|
2024-08-03 23:14:49 +00:00
|
|
|
- git.shockrah.xyz
|
2024-04-29 04:25:03 +00:00
|
|
|
- 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 }}"
|