+ Base plays for updating all static sites

This commit is contained in:
shockrah
2021-12-27 23:42:17 -08:00
parent b91d04dbf5
commit b7efff98fe
3 changed files with 48 additions and 0 deletions

View 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