2016-02-11 21:49:00 +01:00
|
|
|
- name: Configure Project
|
|
|
|
become: yes
|
|
|
|
copy: src="./config/application.{{ project_config }}.ini" dest="{{ ansistrano_release_path.stdout }}/application/configs/application.ini"
|
|
|
|
|
2016-02-15 09:12:02 +01:00
|
|
|
- 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 }}"
|
|
|
|
|
2016-02-11 21:49:00 +01:00
|
|
|
- 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
|