ansible/apps/odea/tasks/after-updatecode.yml
Michael RICOIS 0643bacf90 Don't follow
2016-02-23 15:58:22 +01:00

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