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

33 lines
742 B
YAML
Raw 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: "{{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