social-networking-library-ws: better use of maven_artifact.
This commit is contained in:
parent
c0f06f440a
commit
39cf54e24a
|
@ -5,6 +5,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- '{{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}'
|
- '{{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}'
|
||||||
- '{{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}.{{ social_networking_library_ws_extension }}'
|
- '{{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}.{{ social_networking_library_ws_extension }}'
|
||||||
|
notify: Restart smartgears
|
||||||
|
|
||||||
become: True
|
become: True
|
||||||
become_user: '{{ d4science_user }}'
|
become_user: '{{ d4science_user }}'
|
||||||
|
@ -14,6 +15,15 @@
|
||||||
- block:
|
- block:
|
||||||
- name: Get the social-networking-library-ws war
|
- name: Get the social-networking-library-ws war
|
||||||
maven_artifact: artifact_id={{ social_networking_library_ws_name }} version={{ social_networking_library_ws_version | default(omit) }} group_id={{ social_networking_library_ws_group_id }} extension={{ social_networking_library_ws_extension | default('war') }} repository_url={{ smartgears_global_base_url }} dest={{ smartgears_downloads_dir }}/{{ social_networking_library_ws_file }}
|
maven_artifact: artifact_id={{ social_networking_library_ws_name }} version={{ social_networking_library_ws_version | default(omit) }} group_id={{ social_networking_library_ws_group_id }} extension={{ social_networking_library_ws_extension | default('war') }} repository_url={{ smartgears_global_base_url }} dest={{ smartgears_downloads_dir }}/{{ social_networking_library_ws_file }}
|
||||||
|
register: social_networking_library_ws_download
|
||||||
|
|
||||||
|
- name: Remove the old social-networking-library-ws files when upgrading
|
||||||
|
file: path={{ item }} state=absent
|
||||||
|
with_items:
|
||||||
|
- '{{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}'
|
||||||
|
- '{{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}.{{ social_networking_library_ws_extension }}'
|
||||||
|
when: ( social_networking_library_ws_download | changed )
|
||||||
|
notify: Restart smartgears
|
||||||
|
|
||||||
- name: Copy the social_networking_library_ws war into the tomcat webapps dir
|
- name: Copy the social_networking_library_ws war into the tomcat webapps dir
|
||||||
copy: src={{ smartgears_downloads_dir }}/{{ social_networking_library_ws_file }} dest={{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}.{{ social_networking_library_ws_extension }} remote_src=yes force=yes
|
copy: src={{ smartgears_downloads_dir }}/{{ social_networking_library_ws_file }} dest={{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}.{{ social_networking_library_ws_extension }} remote_src=yes force=yes
|
||||||
|
|
Loading…
Reference in New Issue