--- - block: - name: Remove the old cmems-importer plugin shell: rm -f {{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/cmems-importer-se-plugin-*-jar-with-dependencies.jar when: cmems_importer_se_plugin_upgrade - name: Install the cmems-importer plugin inside the smart executor lib directory maven_artifact: artifact_id={{ cmems_importer_se_plugin_name }} version={{ cmems_importer_se_plugin_version | default(omit) }} group_id={{ cmems_importer_se_plugin_group_id }} extension={{ cmems_importer_se_plugin_extension | default('war') }} repository_url={{ smartgears_global_base_url }} classifier={{ cmems_importer_se_plugin_classifier }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ cmems_importer_se_plugin_file }} notify: Restart smartgears - name: Install the nco package become_user: root apt: pkg=nco state=present update_cache=yes cache_valid_time=1800 become: True become_user: '{{ smartgears_user }}' when: cmems_importer_se_plugin_install tags: [ 'smartgears', 'cmems_importer_se', 'tomcat' ]