infra/deprecated/playbooks/beta/setup-nginx-confs.yml

35 lines
780 B
YAML
Raw Permalink Normal View History

---
- hosts: beta
remote_user: ubuntu
become: yes
become_method: sudo
tasks:
- name: Push Nginx Site Configs into available site listings
copy:
src: "base-site-conf/{{item}}"
dest: /etc/nginx/sites-available/
loop:
- freechat.shockrah.xyz
- resume.shockrah.xyz
- shockrah.xyz
- qrcodes.leftcoast.space
- 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
- qrcodes.leftcoast.space
- name: Restart Nginx Service
service:
name: nginx
state: restarted