ansible/apps/odea/tasks/after-updatecode.yml

19 lines
806 B
YAML
Raw Normal View History

2016-02-09 16:50:45 +01:00
- 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
2016-02-09 16:23:52 +01:00
2016-02-09 16:50:45 +01:00
- name: Create Dir data/sessions
2016-02-09 14:48:07 +01:00
become: yes
2016-02-09 16:50:45 +01:00
file: path="{{ ansistrano_release_path.stdout }}/data/sessions" state=directory owner=www-data group=www-data
2016-02-09 16:23:52 +01:00
2016-02-09 16:50:45 +01:00
- name: Configure Project
2016-02-09 14:48:07 +01:00
become: yes
2016-02-09 16:50:45 +01:00
copy: src="./config/application.{{ project_mode }}.ini" dest="{{ ansistrano_release_path.stdout }}/application/configs/application.ini"
2016-02-09 14:48:07 +01:00
2016-02-05 15:30:37 +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