2017-03-17 19:11:24 +01:00
|
|
|
---
|
|
|
|
- block:
|
|
|
|
- name: Remove the old ic_proxy files
|
|
|
|
file: path={{ smartgears_instance_path }}/webapps/{{ ic_proxy_name }} state=absent
|
|
|
|
|
|
|
|
become: True
|
|
|
|
become_user: '{{ d4science_user }}'
|
|
|
|
when: ( not ic_proxy_install ) or ( smartgears_upgrade )
|
|
|
|
tags: [ 'smartgears', 'ic_proxy', 'tomcat' ]
|
|
|
|
|
|
|
|
- block:
|
|
|
|
# NOTE: Install as the smartgears user so we do not mess with the permissions
|
|
|
|
- name: Get the ic_proxy war
|
|
|
|
maven_artifact: artifact_id={{ ic_proxy_name }} version={{ ic_proxy_version | default(omit) }} group_id={{ ic_proxy_group_id }} extension={{ ic_proxy_extension | default('war') }} repository_url={{ ic_proxy_repository_url }} dest={{ smartgears_user_home }}/{{ ic_proxy_file }}
|
|
|
|
|
2017-05-08 16:46:00 +02:00
|
|
|
- name: Create the ic proxy working directory
|
2017-03-17 19:11:24 +01:00
|
|
|
file: path={{ smartgears_instance_path }}/webapps/{{ ic_proxy_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}
|
|
|
|
|
|
|
|
- name: Unarchive the ic_proxy war
|
|
|
|
unarchive: copy=no src={{ smartgears_user_home }}/{{ ic_proxy_file }} dest={{ smartgears_instance_path }}/webapps/{{ ic_proxy_name }} creates={{ smartgears_instance_path }}/webapps/{{ ic_proxy_name }}/WEB-INF/lib
|
|
|
|
notify: Restart smartgears
|
|
|
|
|
2017-03-22 16:09:05 +01:00
|
|
|
- name: Fix exclude tag in gcube-app.xml
|
|
|
|
template: src=gcube-app.xml.j2 dest={{ smartgears_instance_path }}/webapps/{{ ic_proxy_name }}/WEB-INF/gcube-app.xml owner={{ d4science_user }} group={{ d4science_user }}
|
|
|
|
notify: Restart smartgears
|
|
|
|
when: ic_proxy_allscopes
|
|
|
|
|
2017-03-17 19:11:24 +01:00
|
|
|
become: True
|
|
|
|
become_user: '{{ d4science_user }}'
|
|
|
|
when: ic_proxy_install
|
|
|
|
tags: [ 'smartgears', 'ic_proxy', 'tomcat' ]
|