23 lines
1.0 KiB
YAML
23 lines
1.0 KiB
YAML
---
|
|
- name: Prepare Temp to be deleted
|
|
command: mv "{{ ansistrano_shared_path.stdout }}/temp" "{{ ansistrano_shared_path.stdout }}/temp_to_delete"
|
|
|
|
- name: Re-Create Temp Dir
|
|
file: path="{{ ansistrano_shared_path.stdout }}/temp/{{ item.src }}" state=directory
|
|
with_items:
|
|
- { src: 'pages/file/image' }
|
|
- { src: 'pages/imgcache' }
|
|
- { src: 'cache' }
|
|
- { src: 'files' }
|
|
- { src: 'sessions' }
|
|
- { src: 'wsdl' }
|
|
|
|
- name: Re-Create Symlink
|
|
file: src={{ item.src }} dest={{ item.dest }} state=link
|
|
with_items:
|
|
- { src: "{{ ansistrano_shared_path.stdout }}/persist/logos", dest: "{{ ansistrano_shared_path.stdout }}/temp/pages/file/image/logo" }
|
|
- { src: "{{ ansistrano_shared_path.stdout }}/persist/streetview", dest: "{{ ansistrano_shared_path.stdout }}/temp/pages/file/streetview" }
|
|
- { src: "{{ ansistrano_release_path.stdout }}/public/themes", dest: "{{ ansistrano_shared_path.stdout }}/temp/pages/themes" }
|
|
|
|
- name: Remove old Temp
|
|
file: path="{{ ansistrano_shared_path.stdout }}/temp_to_delete" state=absent |