2016-07-29 16:00:06 +02:00
|
|
|
---
|
2017-01-23 19:30:27 +01:00
|
|
|
- block:
|
2016-07-29 16:00:06 +02:00
|
|
|
- name: Remove the old fhn-manager files
|
|
|
|
file: path={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }} state=absent
|
2017-02-28 16:44:15 +01:00
|
|
|
when: fhn_manager_upgrade
|
2017-01-23 19:30:27 +01:00
|
|
|
|
2016-07-29 16:00:06 +02:00
|
|
|
# NOTE: Install as the smartgears user so we do not mess with the permissions
|
|
|
|
- name: Get the fhn-manager-service
|
2017-02-27 15:34:58 +01:00
|
|
|
maven_artifact: artifact_id={{ fhn_manager_name }} version={{ fhn_manager_version | default(omit) }} group_id={{ fhn_group_id }} extension={{ fhn_extension | default('war') }} repository_url={{ fhn_manager_repository_url }} dest={{ smartgears_user_home }}/{{ fhn_manager_file }}
|
|
|
|
|
2016-07-29 16:00:06 +02:00
|
|
|
- name: Create the fhn manager working directory
|
|
|
|
file: path={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}
|
|
|
|
|
|
|
|
- name: Unarchive the fhn_manager war
|
|
|
|
unarchive: copy=no src={{ smartgears_user_home }}/{{ fhn_manager_file }} dest={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }} creates={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }}/WEB-INF/lib
|
|
|
|
notify: Restart smartgears
|
|
|
|
|
|
|
|
become: True
|
|
|
|
become_user: '{{ d4science_user }}'
|
2017-01-23 19:30:27 +01:00
|
|
|
when: fhn_manager_install
|
2016-07-29 16:00:06 +02:00
|
|
|
tags: [ 'smartgears', 'fhn_manager', 'tomcat' ]
|