26 lines
1017 B
YAML
26 lines
1017 B
YAML
---
|
|
- name: Create Temp Directories
|
|
file: path="{{ ansistrano_shared_path.stdout }}/{{ item.src }}" state=directory
|
|
with_items:
|
|
- { src: 'conso' }
|
|
- { src: 'export' }
|
|
- { src: 'import' }
|
|
- { src: 'log' }
|
|
- { src: 'stats' }
|
|
- { src: 'upload' }
|
|
|
|
- name: Configure Project application.ini
|
|
become: yes
|
|
copy: src="./config/application.{{ project_config }}.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: Configure Project config.php
|
|
become: yes
|
|
copy: src="./config/config.{{ project_config }}.php" dest="{{ ansistrano_release_path.stdout }}/application/configs/config.php"
|
|
|
|
- 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 |