So far testing with with athens-freechat.shockrah.xyz HTTP setup is working thus far and so certbot integrations are all that is left. Once those are done creating plays for all other websites should be fairly straight forward
26 lines
562 B
YAML
26 lines
562 B
YAML
---
|
|
- hosts: beta
|
|
remote_user: ubuntu
|
|
become: yes
|
|
become_method: sudo
|
|
tasks:
|
|
- name: Push into sites-available
|
|
copy:
|
|
src: "{{item}}"
|
|
dest: /etc/nginx/sites-available/
|
|
loop:
|
|
- base-site-conf/freechat.shockrah.xyz
|
|
|
|
- name: Enable Freechat Docs site in Nginx
|
|
file:
|
|
src: /etc/nginx/sites-available/freechat.shockrah.xyz
|
|
dest: /etc/nginx/sites-enabled/freechat.shockrah.xyz
|
|
state: link
|
|
- name: Restart Nginx service
|
|
service:
|
|
name: nginx
|
|
state: restarted
|
|
|
|
|
|
|