forked from ISTI-ansible-roles/ansible-roles
library/roles/smartgears/smart_executor: Refactored to use the maven_artifact module.
This commit is contained in:
parent
2238f7813c
commit
2681e0574d
|
@ -5,6 +5,8 @@ smart_executor_context: /smart-executor
|
|||
|
||||
smart_executor_version: 1.4.0-4.1.0-132084
|
||||
smart_executor_name: smart-executor
|
||||
smart_executor_file: '{{ smart_executor_name }}-{{ smart_executor_version }}.war'
|
||||
smart_executor_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}/org/gcube/vremanagement/smart-executor/{{ smart_executor_version }}/{{ smart_executor_file }}'
|
||||
smart_executor_extension: war
|
||||
smart_executor_group_id: org.gcube.vremanagement
|
||||
smart_executor_file: '{{ smart_executor_name }}-{{ smart_executor_version }}.{{ smart_executor_extension }}'
|
||||
smart_executor_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}'
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
# 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 }}
|
||||
maven_artifact: artifact_id={{ smart_executor_name }} version={{ smart_executor_version | default('latest') }} group_id={{ smart_executor_group_id }} extension={{ smart_executor_extension | default('war') }} repository_url={{ smart_executor_url }} dest={{ smartgears_user_home }}/{{ smart_executor_file }}
|
||||
|
||||
- name: Create the smart executor working directory
|
||||
file: path={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}
|
||||
|
|
Loading…
Reference in New Issue