17 lines
352 B
YAML
17 lines
352 B
YAML
---
|
|
- 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:
|
|
path: /var/www/shockrah.xyz
|
|
state: absent
|
|
|
|
- name: Pull up blog content
|
|
command: mv /var/www/public /var/www/shockrah.xyz
|