diff --git a/smartgears/dataminer_algorithms_crawler_plugin/tasks/main.yml b/smartgears/dataminer_algorithms_crawler_plugin/tasks/main.yml index 3091b5bc..27937660 100644 --- a/smartgears/dataminer_algorithms_crawler_plugin/tasks/main.yml +++ b/smartgears/dataminer_algorithms_crawler_plugin/tasks/main.yml @@ -5,33 +5,33 @@ become: True become_user: '{{ smartgears_user }}' - when: not dataminer_crawler_plugin_plugin_install + when: not dataminer_crawler_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 + maven_artifact: artifact_id={{ dataminer_crawler_plugin_name }} version={{ dataminer_crawler_plugin_version }} group_id={{ dataminer_crawler_plugin_group_id }} extension={{ dataminer_crawler_plugin_extension }} repository_url={{ smartgears_global_base_url }} classifier={{ dataminer_crawler_plugin_classifier }} dest={{ smartgears_downloads_dir }}/{{ dataminer_crawler_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 + file: dest={{ smartgears_instance_path }}/webapps/{{ gfeed_service_name }}/WEB-INF/lib/plugins/{{ dataminer_crawler_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 + file: dest={{ smartgears_instance_path }}/webapps/{{ gfeed_service_name }}/WEB-INF/lib/plugins/{{ dataminer_crawler_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 + unarchive: src={{ smartgears_downloads_dir }}/{{ dataminer_crawler_plugin_uber_file }} dest={{ smartgears_instance_path }}/webapps/{{ gfeed_service_name }}/WEB-INF/lib/plugins/{{ dataminer_crawler_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 + maven_artifact: artifact_id={{ dataminer_crawler_plugin_name }} version={{ dataminer_crawler_plugin_version }} group_id={{ dataminer_crawler_plugin_group_id }} extension={{ dataminer_crawler_plugin_extension }} repository_url={{ smartgears_global_base_url }} dest={{ smartgears_instance_path }}/webapps/{{ gfeed_service_name }}/WEB-INF/lib/plugins/{{ dataminer_crawler_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 + file: dest={{ smartgears_instance_path }}/webapps/{{ gfeed_service_name }}/WEB-INF/lib/plugins/{{ dataminer_crawler_plugin_name }}/{{ item }} state=absent with_items: - org - 'META-INF' @@ -39,6 +39,6 @@ become: True become_user: '{{ smartgears_user }}' - when: dataminer_crawler_plugin_plugin_install + when: dataminer_crawler_plugin_install tags: [ 'smartgears', 'dataminer_crawler', 'tomcat' ]