19 lines
784 B
YAML
19 lines
784 B
YAML
---
|
|
- name: Create Temp Directories
|
|
file: path="{{ ansistrano_release_path.stdout }}/{{ item.src }}" state=directory owner=www-data group=www-data
|
|
with_items:
|
|
- { src: 'data' }
|
|
- { src: 'cache' }
|
|
- { src: 'sessions' }
|
|
|
|
- name: Configure Project
|
|
become: yes
|
|
copy: src="./config/application.{{ project_mode }}.ini" dest="{{ ansistrano_release_path.stdout }}/application/configs/application.ini"
|
|
|
|
- name: Set path in project config
|
|
become: yes
|
|
replace: dest="{{ ansistrano_release_path.stdout }}/application/configs/application.ini" regexp="PROJECT_DIR" replace="{{ ansistrano_deploy_to }}"
|
|
|
|
- name: Set www-data owner of "ansistrano_deploy_to"
|
|
become: yes
|
|
file: path="{{ ansistrano_deploy_to }}" state=directory recurse=yes owner=www-data group=www-data |