ansible-roles/smartgears/resource_checker_se_plugin/tasks/main.yml

15 lines
1023 B
YAML

---
- block:
- name: Remove the old resource checker plugin
shell: rm -f {{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/resource-checker-se-plugin-*-jar-with-dependencies.jar
when: resource_checker_se_plugin_upgrade
- name: Install the resource checker plugin inside the smart executor lib directory
maven_artifact: artifact_id={{ resource_checker_se_plugin_name }} version={{ resource_checker_se_plugin_version | default(omit) }} group_id={{ resource_checker_se_plugin_group_id }} extension={{ resource_checker_se_plugin_extension | default('war') }} repository_url={{ smartgears_global_base_url }} classifier={{ resource_checker_se_plugin_classifier }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ resource_checker_se_plugin_file }}
notify: Restart smartgears
become: True
become_user: '{{ smartgears_user }}'
when: resource_checker_se_plugin_install
tags: [ 'smartgears', 'resource_checker_se', 'tomcat' ]