+ Certbot certificate installation
+ Pushing out all website content + Pushing out nginx configs + Resume nginx config
This commit is contained in:
38
playbooks/beta/local-website-pushes.yml
Normal file
38
playbooks/beta/local-website-pushes.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
# This will take care of pushing out all local website content onto
|
||||
# the remote host server ready to be configured for HTTPS
|
||||
---
|
||||
- hosts: web
|
||||
remote_user: web
|
||||
tasks:
|
||||
- name: Clean out freechat content
|
||||
file:
|
||||
path: /var/www/freechat
|
||||
state: absent
|
||||
|
||||
- name: Push freechat chat content
|
||||
copy:
|
||||
src: "{{FC_LOCAL_DOCS}}/public"
|
||||
dest: /var/www/
|
||||
|
||||
- name: Pull up freechat public directory
|
||||
command: mv /var/www/public /var/www/freechat
|
||||
|
||||
- name: Push out resume public content
|
||||
copy:
|
||||
src: "{{RESUME_LOCAL_PUBLIC}}/public"
|
||||
dest: /var/www/
|
||||
|
||||
- name: Pull up resume content
|
||||
command: mv /var/www/public /var/www/resume.shockrah.xyz
|
||||
|
||||
- name: Push blog content
|
||||
copy:
|
||||
src: "{{BLOG_LOCAL_PUBLIC}}/public"
|
||||
dest: /var/www/
|
||||
|
||||
- name: Pull up blog content
|
||||
command: mv /var/www/public /var/www/shockrah.xyz
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user