2021-12-15 07:55:02 +00:00
|
|
|
---
|
|
|
|
- hosts: beta
|
|
|
|
remote_user: ubuntu
|
|
|
|
become: yes
|
|
|
|
become_method: sudo
|
|
|
|
tasks:
|
2021-12-15 08:52:41 +00:00
|
|
|
- name: Push Nginx Site Configs into available site listings
|
2021-12-15 07:55:02 +00:00
|
|
|
copy:
|
2022-07-25 06:33:50 +00:00
|
|
|
src: "base-site-conf/{{item}}"
|
2021-12-15 07:55:02 +00:00
|
|
|
dest: /etc/nginx/sites-available/
|
|
|
|
loop:
|
2022-07-25 06:33:50 +00:00
|
|
|
- freechat.shockrah.xyz
|
|
|
|
- resume.shockrah.xyz
|
|
|
|
- shockrah.xyz
|
|
|
|
- qrcodes.leftcoast.space
|
2021-12-15 07:55:02 +00:00
|
|
|
|
2021-12-15 08:52:41 +00:00
|
|
|
- name: Enable Static Sites in Nginx
|
2021-12-15 07:55:02 +00:00
|
|
|
file:
|
2021-12-15 08:52:41 +00:00
|
|
|
src: "/etc/nginx/sites-available/{{item}}"
|
|
|
|
dest: "/etc/nginx/sites-enabled/{{item}}"
|
2021-12-15 07:55:02 +00:00
|
|
|
state: link
|
2021-12-15 08:52:41 +00:00
|
|
|
loop:
|
|
|
|
- freechat.shockrah.xyz
|
|
|
|
- resume.shockrah.xyz
|
|
|
|
- shockrah.xyz
|
2022-07-25 06:33:50 +00:00
|
|
|
- qrcodes.leftcoast.space
|
2021-12-15 08:52:41 +00:00
|
|
|
|
|
|
|
- name: Restart Nginx Service
|
2021-12-15 07:55:02 +00:00
|
|
|
service:
|
|
|
|
name: nginx
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
|
|
|
|
|