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

31 lines
1.1 KiB
YAML
Raw Normal View History

- name: Create Dir Cache
become: yes
file: path="{{ ansistrano_shared_path.stdout }}/cache" state=directory
2016-02-11 11:29:25 +01:00
- name: Create Dir Log
2016-02-11 11:29:25 +01:00
become: yes
file: path="{{ ansistrano_shared_path.stdout }}/log" state=directory
2016-02-11 11:29:25 +01:00
- name: Create Dir Sessions
2016-02-11 11:29:25 +01:00
become: yes
file: path="{{ ansistrano_shared_path.stdout }}/sessions" state=directory
- name: Create Dir Wsdl
become: yes
file: path="{{ ansistrano_shared_path.stdout }}/wsdl" state=directory
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: 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