forked from ISTI-ansible-roles/ansible-roles
14 lines
874 B
YAML
14 lines
874 B
YAML
---
|
|
- block:
|
|
- name: Get the accounting_service war
|
|
maven_artifact: artifact_id={{ accounting_service_name }} version={{ accounting_service_version | default('latest') }} group_id={{ accounting_service_group_id }} extension={{ accounting_service_extension | default('war') }} repository_url={{ smartgears_global_base_url }} dest={{ smartgears_downloads_dir }}/{{ accounting_service_file }}
|
|
|
|
- name: Copy the accounting_service war file to the destination place
|
|
copy: src={{ smartgears_downloads_dir }}/{{ accounting_service_file }} dest={{ smartgears_instance_path }}/webapps/{{ accounting_service_name }}.{{ accounting_service_extension }} remote_src=yes force=yes
|
|
notify: Restart smartgears
|
|
|
|
become: True
|
|
become_user: '{{ smartgears_user }}'
|
|
when: accounting_service_install
|
|
tags: [ 'smartgears', 'accounting_service', 'tomcat' ]
|