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

35 lines
1.2 KiB
YAML
Raw Normal View History

---
- name : Cleanup
file: path="{{ ansistrano_shared_path.stdout }}/{{ item.src }}" state=absent
with_items:
- { src: 'cache' }
- { src: 'wsdl' }
- name: Create Temp Directories
file: path="{{ ansistrano_shared_path.stdout }}/{{ item.src }}" state=directory
with_items:
- { src: 'cache' }
- { src: 'files' }
- { src: 'log' }
- { src: 'sessions' }
- { src: 'wsdl' }
2016-02-11 11:29:25 +01:00
- name: Copy needed files
become: yes
copy: src="{{ ansistrano_deploy_from }}/scripts/build/files" dest="{{ ansistrano_shared_path.stdout }}/" force=yes
- name: Configure Project
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: Generate Evenements Cache
become: yes
command: "/usr/bin/php {{ ansistrano_release_path.stdout }}/scripts/build/genCache.php --generate Evenements"
2016-02-11 11:29:25 +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