+ Proof of concept playbooks for pushing website content
So far testing with with athens-freechat.shockrah.xyz HTTP setup is working thus far and so certbot integrations are all that is left. Once those are done creating plays for all other websites should be fairly straight forward
This commit is contained in:
20
playbooks/beta/local-freechat-push.yml
Normal file
20
playbooks/beta/local-freechat-push.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
# This will take care of pushing out
|
||||
---
|
||||
- hosts: web
|
||||
remote_user: web
|
||||
tasks:
|
||||
- name: Clean out remote remote site content
|
||||
file:
|
||||
path: /var/www/freechat
|
||||
state: absent
|
||||
|
||||
- name: Push /public directory to /var/www/freechat
|
||||
copy:
|
||||
src: "{{FC_LOCAL_DOCS}}/public"
|
||||
dest: /var/www/
|
||||
|
||||
- name: Pull up public directory
|
||||
command: mv /var/www/public /var/www/freechat
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user