25 lines
1.2 KiB
YAML
25 lines
1.2 KiB
YAML
---
|
|
- block:
|
|
|
|
- name: Remove the old smart executor files
|
|
file: path={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }} state=absent
|
|
when: ( not smart_executor_install ) or ( smartgears_upgrade )
|
|
|
|
# NOTE: Install as the smartgears user so we do not mess with the permissions
|
|
- name: Get the smart executor plugin
|
|
get_url: url={{ smart_executor_url }} dest={{ smartgears_user_home }}/{{ smart_executor_file }}
|
|
when: smart_executor_install
|
|
|
|
- name: Create the smart executor working directory
|
|
file: path={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}
|
|
when: smart_executor_install
|
|
|
|
- name: Unarchive the smartexecutor distribution
|
|
unarchive: copy=no src={{ smartgears_user_home }}/{{ smart_executor_file }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }} creates={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib
|
|
when: smart_executor_install
|
|
notify: Restart smartgears
|
|
|
|
become: True
|
|
become_user: '{{ d4science_user }}'
|
|
tags: [ 'smartgears', 'smart_executor', 'tomcat' ]
|