diff --git a/smartgears/accounting_aggregator_se_plugin/defaults/main.yml b/smartgears/accounting_aggregator_se_plugin/defaults/main.yml new file mode 100644 index 00000000..ff1a01d4 --- /dev/null +++ b/smartgears/accounting_aggregator_se_plugin/defaults/main.yml @@ -0,0 +1,6 @@ +--- +gcube_repository: 'gcube-staging' +accounting_aggregator_se_plugin_install: False +accounting_aggregator_se_plugin_ver: 1.0.0-SNAPSHOT +accounting_aggregator_se_plugin_name: 'accounting-aggregator-se-plugin-1.0.0-20160729.125931-6.jar' +accounting_aggregator_se_plugin_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}/org/gcube/accounting/accounting-aggregator-se-plugin/{{ accounting_aggregator_se_plugin_ver }}/{{ accounting_aggregator_se_plugin_name }}' diff --git a/smartgears/accounting_aggregator_se_plugin/handlers/main.yml b/smartgears/accounting_aggregator_se_plugin/handlers/main.yml new file mode 100644 index 00000000..a9b4ffdd --- /dev/null +++ b/smartgears/accounting_aggregator_se_plugin/handlers/main.yml @@ -0,0 +1,3 @@ +--- +- name: Restart smartgears + service: name='tomcat-instance-{{ smartgears_http_port }}' state=restarted diff --git a/smartgears/accounting_aggregator_se_plugin/tasks/main.yml b/smartgears/accounting_aggregator_se_plugin/tasks/main.yml new file mode 100644 index 00000000..2926982c --- /dev/null +++ b/smartgears/accounting_aggregator_se_plugin/tasks/main.yml @@ -0,0 +1,9 @@ +--- +- 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' ] +