+ Proof of concept playbooks for pushing website content
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
This commit is contained in:
25
playbooks/beta/setup-nginx-confs.yml
Normal file
25
playbooks/beta/setup-nginx-confs.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
- 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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user