- 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: Set Webservice URI, only in dev become: yes replace: dest="{{ ansistrano_release_path.stdout }}/application/configs/application.ini" regexp="WEBSERVICE_URI" replace="{{ webservice_uri }}" - name: Set www-data owner of "ansistrano_deploy_to" become: yes file: path="{{ ansistrano_deploy_to }}" state=directory recurse=yes follow=true owner=www-data group=www-data