forked from ISTI-ansible-roles/ansible-roles
adde tasks for new gfeed plugin
This commit is contained in:
parent
335ef10181
commit
693a6aeebb
|
@ -0,0 +1,44 @@
|
|||
---
|
||||
- block:
|
||||
- name: Remove the old dataminer crawler gfeed plugin
|
||||
file: dest={{ smartgears_instance_path }}/webapps/{{ gfeed_service_name }}/WEB-INF/lib/plugins/{{ dataminer_crawler_plugin_plugin_name }} state=absent
|
||||
|
||||
become: True
|
||||
become_user: '{{ smartgears_user }}'
|
||||
when: not dataminer_crawler_plugin_plugin_install
|
||||
tags: [ 'smartgears', 'dataminer_crawler', 'tomcat' ]
|
||||
|
||||
- block:
|
||||
- name: Get the dataminer crawler gfeed uber jar
|
||||
maven_artifact: artifact_id={{ dataminer_crawler_plugin_plugin_name }} version={{ dataminer_crawler_plugin_plugin_version }} group_id={{ dataminer_crawler_plugin_plugin_group_id }} extension={{ dataminer_crawler_plugin_plugin_extension }} repository_url={{ smartgears_global_base_url }} classifier={{ dataminer_crawler_plugin_plugin_classifier }} dest={{ smartgears_downloads_dir }}/{{ dataminer_crawler_plugin_plugin_uber_file }} verify_checksum=always
|
||||
register: dataminer_crawler_download
|
||||
|
||||
- name: Remove the old dataminer crawler gfeed plugin
|
||||
file: dest={{ smartgears_instance_path }}/webapps/{{ gfeed_service_name }}/WEB-INF/lib/plugins/{{ dataminer_crawler_plugin_plugin_name }} state=absent
|
||||
when: dataminer_crawler_download is changed
|
||||
|
||||
- name: Create the plugin directory inside gfeed
|
||||
file: dest={{ smartgears_instance_path }}/webapps/{{ gfeed_service_name }}/WEB-INF/lib/plugins/{{ dataminer_crawler_plugin_plugin_name }} state=directory
|
||||
register: dataminer_crawler_create_dir
|
||||
|
||||
- name: Unarchive the dataminer crawler gfeed uber jar to expose its libraries
|
||||
unarchive: src={{ smartgears_downloads_dir }}/{{ dataminer_crawler_plugin_plugin_uber_file }} dest={{ smartgears_instance_path }}/webapps/{{ gfeed_service_name }}/WEB-INF/lib/plugins/{{ dataminer_crawler_plugin_plugin_name }}/ copy=no
|
||||
when: dataminer_crawler_create_dir is changed
|
||||
notify: Restart smartgears
|
||||
|
||||
- name: Get the dataminer crawler gfeed jar
|
||||
maven_artifact: artifact_id={{ dataminer_crawler_plugin_plugin_name }} version={{ dataminer_crawler_plugin_plugin_version }} group_id={{ dataminer_crawler_plugin_plugin_group_id }} extension={{ dataminer_crawler_plugin_plugin_extension }} repository_url={{ smartgears_global_base_url }} dest={{ smartgears_instance_path }}/webapps/{{ gfeed_service_name }}/WEB-INF/lib/plugins/{{ dataminer_crawler_plugin_plugin_name }} keep_name=yes
|
||||
notify: Restart smartgears
|
||||
|
||||
- name: Remove the dataminer crawler uber jar org and META-INF directories
|
||||
file: dest={{ smartgears_instance_path }}/webapps/{{ gfeed_service_name }}/WEB-INF/lib/plugins/{{ dataminer_crawler_plugin_plugin_name }}/{{ item }} state=absent
|
||||
with_items:
|
||||
- org
|
||||
- 'META-INF'
|
||||
notify: Restart smartgears
|
||||
|
||||
become: True
|
||||
become_user: '{{ smartgears_user }}'
|
||||
when: dataminer_crawler_plugin_plugin_install
|
||||
tags: [ 'smartgears', 'dataminer_crawler', 'tomcat' ]
|
||||
|
Loading…
Reference in New Issue