ansible/apps/extranet/tasks/after-updatecode.yml
2016-02-24 15:56:01 +01:00

15 lines
786 B
YAML

- 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 Permission "ansistrano_release_path.stdout"
become: yes
file: path="{{ ansistrano_release_path.stdout }}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data