17 lines
407 B
YAML
17 lines
407 B
YAML
|
---
|
||
|
- 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 }}"
|