From b7efff98fe70ca35cdb81a5718bfe380d78dbc0b Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 27 Dec 2021 23:42:17 -0800 Subject: [PATCH] + Base plays for updating all static sites --- playbooks/beta/websites/update-blog.yml | 16 ++++++++++++++++ playbooks/beta/websites/update-fc-docs.yml | 17 +++++++++++++++++ playbooks/beta/websites/update-resume.yml | 15 +++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 playbooks/beta/websites/update-blog.yml create mode 100644 playbooks/beta/websites/update-fc-docs.yml create mode 100644 playbooks/beta/websites/update-resume.yml diff --git a/playbooks/beta/websites/update-blog.yml b/playbooks/beta/websites/update-blog.yml new file mode 100644 index 0000000..ec0407c --- /dev/null +++ b/playbooks/beta/websites/update-blog.yml @@ -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 diff --git a/playbooks/beta/websites/update-fc-docs.yml b/playbooks/beta/websites/update-fc-docs.yml new file mode 100644 index 0000000..345b994 --- /dev/null +++ b/playbooks/beta/websites/update-fc-docs.yml @@ -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 + diff --git a/playbooks/beta/websites/update-resume.yml b/playbooks/beta/websites/update-resume.yml new file mode 100644 index 0000000..643a9b0 --- /dev/null +++ b/playbooks/beta/websites/update-resume.yml @@ -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