infra/playbooks/beta/setup-nginx-confs.yml
shockrah 8c318157e3 + Certbot certificate installation
+ Pushing out all website content
+ Pushing out nginx configs
+ Resume nginx config
2021-12-15 00:52:41 -08:00

33 lines
742 B
YAML

---
- hosts: beta
remote_user: ubuntu
become: yes
become_method: sudo
tasks:
- 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 Static Sites in Nginx
file:
src: "/etc/nginx/sites-available/{{item}}"
dest: "/etc/nginx/sites-enabled/{{item}}"
state: link
loop:
- freechat.shockrah.xyz
- resume.shockrah.xyz
- shockrah.xyz
- name: Restart Nginx Service
service:
name: nginx
state: restarted