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

11 lines
547 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 www-data owner of "ansistrano_deploy_to"
become: yes
file: path="{{ ansistrano_deploy_to }}" state=directory recurse=yes owner=www-data group=www-data