+ 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

@@ -4,19 +4,26 @@
become: yes
become_method: sudo
tasks:
- name: Push into sites-available
- name: Push Nginx Site Configs into available site listings
copy:
src: "{{item}}"
dest: /etc/nginx/sites-available/
loop:
- base-site-conf/freechat.shockrah.xyz
- base-site-conf/resume.shockrah.xyz
- base-site-conf/shockrah.xyz
- name: Enable Freechat Docs site in Nginx
- name: Enable Static Sites in Nginx
file:
src: /etc/nginx/sites-available/freechat.shockrah.xyz
dest: /etc/nginx/sites-enabled/freechat.shockrah.xyz
src: "/etc/nginx/sites-available/{{item}}"
dest: "/etc/nginx/sites-enabled/{{item}}"
state: link
- name: Restart Nginx service
loop:
- freechat.shockrah.xyz
- resume.shockrah.xyz
- shockrah.xyz
- name: Restart Nginx Service
service:
name: nginx
state: restarted