+ Base plays for updating all static sites
This commit is contained in:
parent
b91d04dbf5
commit
b7efff98fe
16
playbooks/beta/websites/update-blog.yml
Normal file
16
playbooks/beta/websites/update-blog.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
- hosts: web
|
||||||
|
remote_user: web
|
||||||
|
tasks:
|
||||||
|
- name: Push blog content
|
||||||
|
copy:
|
||||||
|
src: "{{BLOG_LOCAL_PUBLIC}}/public"
|
||||||
|
dest: /var/www/
|
||||||
|
|
||||||
|
- name: Remove old blog content
|
||||||
|
file:
|
||||||
|
file: /var/www/shockrah.xyz
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Pull up blog content
|
||||||
|
command: mv /var/www/public /var/www/shockrah.xyz
|
17
playbooks/beta/websites/update-fc-docs.yml
Normal file
17
playbooks/beta/websites/update-fc-docs.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
- hosts: web
|
||||||
|
remote_user: web
|
||||||
|
tasks:
|
||||||
|
- name: Push docs content
|
||||||
|
copy:
|
||||||
|
src: "{{FC_LOCAL_DOCS}}/public"
|
||||||
|
dest: /var/www/
|
||||||
|
|
||||||
|
- name: Remove old blog content
|
||||||
|
file:
|
||||||
|
file: /var/www/freechat
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Pull up blog content
|
||||||
|
command: mv /var/www/public /var/www/freechat
|
||||||
|
|
15
playbooks/beta/websites/update-resume.yml
Normal file
15
playbooks/beta/websites/update-resume.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
- hosts: web
|
||||||
|
remote_user: web
|
||||||
|
tasks:
|
||||||
|
- name: Push out resume public content
|
||||||
|
copy:
|
||||||
|
src: "{{RESUME_LOCAL_PUBLIC}}/public"
|
||||||
|
dest: /var/www/
|
||||||
|
- name: Remove old content
|
||||||
|
file:
|
||||||
|
path: /var/www/resume.shockrah.xyz
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Pull up resume content
|
||||||
|
command: mv /var/www/public /var/www/resume.shockrah.xyz
|
Loading…
Reference in New Issue
Block a user