- name: Create Dir Cache become: yes file: path="{{ ansistrano_shared_path.stdout }}/cache" state=directory - name: Create Dir Log become: yes file: path="{{ ansistrano_shared_path.stdout }}/log" state=directory - name: Create Dir Sessions 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 - 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" - 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