19 lines
806 B
YAML
19 lines
806 B
YAML
- name: Create Dir data
|
|
become: yes
|
|
file: path="{{ ansistrano_release_path.stdout }}/data" state=directory owner=www-data group=www-data
|
|
|
|
- name: Create Dir data/cache
|
|
become: yes
|
|
file: path="{{ ansistrano_release_path.stdout }}/data/cache" state=directory owner=www-data group=www-data
|
|
|
|
- name: Create Dir data/sessions
|
|
become: yes
|
|
file: path="{{ ansistrano_release_path.stdout }}/data/sessions" state=directory owner=www-data group=www-data
|
|
|
|
- name: Configure Project
|
|
become: yes
|
|
copy: src="./config/application.{{ project_mode }}.ini" dest="{{ ansistrano_release_path.stdout }}/application/configs/application.ini"
|
|
|
|
- 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 |