48 lines
2.2 KiB
YAML
48 lines
2.2 KiB
YAML
---
|
|
- name: EXTRANET | Configure
|
|
become: yes
|
|
copy: src="./config/application.{{ project_config }}.ini" dest="{{ ansistrano_release_path.stdout }}/application/configs/application.ini"
|
|
|
|
- name: EXTRANET | 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: EXTRANET | Set Webservice URI
|
|
become: yes
|
|
replace: dest="{{ ansistrano_release_path.stdout }}/application/configs/application.ini" regexp="WEBSERVICE_URI" replace="{{ webservice_uri }}"
|
|
|
|
- name: EXTRANET | Configuration PHP-FPM
|
|
become: yes
|
|
copy: src="./config/.user.{{ project_config }}.ini" dest="{{ ansistrano_release_path.stdout }}/public/.user.ini"
|
|
|
|
- name: EXTRANET | Cleanup
|
|
become: yes
|
|
file: path="{{ ansistrano_shared_path.stdout }}/temp/{{ item.src }}" state=absent
|
|
with_items:
|
|
- { src: 'wsdl' }
|
|
|
|
- name: EXTRANET | Create Temp Dir
|
|
become: yes
|
|
file: path="{{ ansistrano_shared_path.stdout }}/temp/{{ item.src }}" state=directory owner=www-data group=www-data
|
|
with_items:
|
|
- { src: 'cache' }
|
|
- { src: 'files' }
|
|
- { src: 'sessions' }
|
|
- { src: 'wsdl' }
|
|
- { src: 'pages/file/image/logo' }
|
|
- { src: 'pages/file/image/cache' }
|
|
- { src: 'pages/file/streetview/img' }
|
|
- { src: 'pages/imgcache' }
|
|
|
|
- name: EXTRANET | Create Symlink
|
|
become: yes
|
|
file: src={{ item.src }} dest={{ item.dest }} state=link force=yes
|
|
with_items:
|
|
- { src: "{{ ansistrano_shared_path.stdout }}/persist/logos", dest: "{{ ansistrano_shared_path.stdout }}/temp/pages/file/image/logo/q" }
|
|
- { src: "{{ ansistrano_shared_path.stdout }}/temp/pages/imgcache", dest: "{{ ansistrano_shared_path.stdout }}/temp/pages/file/image/cache/q" }
|
|
- { src: "{{ ansistrano_shared_path.stdout }}/persist/streetview", dest: "{{ ansistrano_shared_path.stdout }}/temp/pages/file/streetview/img/q" }
|
|
- { src: "{{ ansistrano_release_path.stdout }}/public/themes", dest: "{{ ansistrano_shared_path.stdout }}/temp/pages/themes" }
|
|
|
|
- name: EXTRANET | 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 |