addeed task for managing web.xml

This commit is contained in:
Roberto Cirillo 2019-04-12 14:47:16 +02:00
parent 00fb8b8e16
commit 8f1ea45d64
1 changed files with 12 additions and 2 deletions

View File

@ -25,10 +25,20 @@
when: social_networking_library_ws_download is changed when: social_networking_library_ws_download is changed
notify: Restart smartgears 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
# notify: Restart smartgears
- name: Unarchive the social_networking_library_ws war into the tomcat webapps dir
unarchive: copy=no src={{ smartgears_downloads_dir }}/{{ social_networking_library_ws_file }} dest={{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }} creates='{{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}/WEB-INF/lib'
register: socialnetworking_updated
notify: Restart smartgears notify: Restart smartgears
- name: Install the socialnetworking web.xml
template: src=web.xml.j2 dest={{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}/WEB-INF/web.xml
notify: Restart smartgears
tags: [ 'social_networking_library_ws', 'socialnetworking_webxml', 'tomcat' ]
become: True become: True
become_user: '{{ d4science_user }}' become_user: '{{ d4science_user }}'
when: social_networking_library_ws_install when: social_networking_library_ws_install