8c318157e3
+ Pushing out all website content + Pushing out nginx configs + Resume nginx config
33 lines
742 B
YAML
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
|
|
|
|
|
|
|