+ Certbot certificate installation

+ Pushing out all website content
+ Pushing out nginx configs
+ Resume nginx config
This commit is contained in:
shockrah
2021-12-15 00:52:41 -08:00
parent bba8c30b25
commit 8c318157e3
4 changed files with 83 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
# It is important to keep in mind that these websites are to be served under
# either port 80 or port 443. The reasoning for allowing port 80 connections
# is because the content here is not sensitive and I'm 100% sure I'm going
# to get traffic from glow-friends so there
---
- hosts: beta
remote_user: ubuntu
become: yes
become_method: sudo
tasks:
- name: Install New Certificate for all sites
command: >
certbot -n --nginx -m "{{CERT_EMAIL}}" --agree-tos
--domains "{{item}}"
loop:
- freechat.shockrah.xyz
- shockrah.xyz
- resume.shockrah.xyz