forked from ISTI-ansible-roles/ansible-roles
The accounting service role now uses the /home/gcube/downloads directory.
This commit is contained in:
parent
8892e0f257
commit
a985775707
|
@ -1,18 +1,19 @@
|
||||||
---
|
---
|
||||||
- block:
|
- block:
|
||||||
- name: Create the accounting-service working directory
|
|
||||||
file: path={{ smartgears_instance_path }}/webapps/{{ accounting_service_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}
|
|
||||||
|
|
||||||
- name: Get the accounting_service war
|
- 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_user_home }}/{{ accounting_service_file }}
|
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 }}
|
||||||
register: accounting_service_new_war
|
register: accounting_service_new_war
|
||||||
|
|
||||||
- name: Remove the old accounting-service files
|
- name: Remove the old accounting-service files
|
||||||
file: path={{ smartgears_instance_path }}/webapps/{{ accounting_service_name }} state=absent
|
file: path={{ smartgears_instance_path }}/webapps/{{ accounting_service_name }} state=absent
|
||||||
when: (accounting_service_new_war | changed)
|
when: (accounting_service_new_war | changed)
|
||||||
|
|
||||||
|
- name: Create the accounting-service working directory
|
||||||
|
file: path={{ smartgears_instance_path }}/webapps/{{ accounting_service_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}
|
||||||
|
when: (accounting_service_new_war | changed)
|
||||||
|
|
||||||
- name: Unarchive the accounting service war
|
- name: Unarchive the accounting service war
|
||||||
unarchive: copy=no src={{ smartgears_user_home }}/{{ accounting_service_file }} dest={{ smartgears_instance_path }}/webapps/{{ accounting_service_name }} creates={{ smartgears_instance_path }}/webapps/{{ accounting_service_name }}/WEB-INF/lib
|
unarchive: copy=no src={{ smartgears_downloads_dir }}/{{ accounting_service_file }} dest={{ smartgears_instance_path }}/webapps/{{ accounting_service_name }} creates={{ smartgears_instance_path }}/webapps/{{ accounting_service_name }}/WEB-INF/lib
|
||||||
notify: Restart smartgears
|
notify: Restart smartgears
|
||||||
|
|
||||||
become: True
|
become: True
|
||||||
|
|
Loading…
Reference in New Issue