From 34923bd5b74831812f166178bb4e0279037ab2bf Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 28 Apr 2024 21:25:03 -0700 Subject: [PATCH] Lest encrypt basic playbook for setup --- .../ansible/playbooks/lets-encrypt.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 infra/static-vultr/ansible/playbooks/lets-encrypt.yml diff --git a/infra/static-vultr/ansible/playbooks/lets-encrypt.yml b/infra/static-vultr/ansible/playbooks/lets-encrypt.yml new file mode 100644 index 0000000..e015605 --- /dev/null +++ b/infra/static-vultr/ansible/playbooks/lets-encrypt.yml @@ -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 }}"