+ Base plays for updating all static sites
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user