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