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

44 lines
2.3 KiB
YAML

---
- name: Remove the old accounting aggregator plugin
shell: rm -f {{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/accounting-aggregator-se-plugin-*-jar-with-dependencies.jar
when: accounting_aggregator_se_plugin_upgrade
tags: [ 'smartgears', 'accounting_aggregator_se', 'tomcat' ]
- name: Remove the old accounting insert storage plugin
shell: rm -f {{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ accounting_insert_storage_se_plugin_maven_artifact_id }}-*-jar-with-dependencies.jar
when: accounting_insert_storage_se_plugin_upgrade
tags: [ 'smartgears', 'accounting_insert_storage_se', 'tomcat' ]
- name: Remove the old accounting rstudio storage plugin
shell: rm -f {{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ accounting_insert_rstudio_se_plugin_maven_artifact_id }}-*-jar-with-dependencies.jar
when: accounting_insert_rstudio_se_plugin_upgrade
tags: [ 'smartgears', 'accounting_insert_rstudio_se', 'tomcat' ]
- name: Get the accounting aggregator plugin and install it inside the smart executor
become: True
become_user: '{{ smartgears_user }}'
get_url: url={{ accounting_aggregator_se_plugin_url }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib
when: accounting_aggregator_se_plugin_install
notify: Restart smartgears
tags: [ 'smartgears', 'accounting_aggregator_se', 'tomcat' ]
- name: Get the accounting insert storage plugin and install it inside the smart executor
become: True
become_user: '{{ smartgears_user }}'
get_url: url={{ accounting_insert_storage_se_plugin_url }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib
when: accounting_insert_storage_se_plugin_install
notify: Restart smartgears
tags: [ 'smartgears', 'accounting_insert_storage_se', 'tomcat' ]
- name: Get the accounting insert rstudio plugin and install it inside the smart executor
become: True
become_user: '{{ smartgears_user }}'
get_url: url={{ accounting_insert_rstudio_se_plugin_url }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib
when: accounting_insert_rstudio_se_plugin_install
notify: Restart smartgears
tags: [ 'smartgears', 'accounting_insert_rstudio_se', 'tomcat' ]