forked from ISTI-ansible-roles/ansible-roles
managed web.xml inside uri-resolver webapp
This commit is contained in:
parent
810c5c09ac
commit
5500ed9afd
|
@ -22,10 +22,24 @@
|
||||||
notify: Restart smartgears
|
notify: Restart smartgears
|
||||||
when: uri_resolver_download is changed
|
when: uri_resolver_download is changed
|
||||||
|
|
||||||
- name: Copy the uri-resolver war file into the webapps directory
|
- name: Create the uri-resolver webapp directory
|
||||||
copy: src={{ smartgears_downloads_dir }}/{{ uri_resolver_file }} dest={{ smartgears_instance_path }}/webapps/{{ uri_resolver_name }}.{{ uri_resolver_extension }} remote_src=yes force=yes
|
file: dest={{ smartgears_instance_path }}/webapps/{{ uri_resolver_name }} state=directory
|
||||||
|
when: uri_resolver_download
|
||||||
|
|
||||||
|
- name: Unarchive the uri_resolver war file
|
||||||
|
unarchive: copy=no src={{ smartgears_downloads_dir }}/{{ uri_resolver_file }} dest={{ smartgears_instance_path }}/webapps/{{ uri_resolver_name }}
|
||||||
|
args:
|
||||||
|
creates: '{{ smartgears_instance_path }}/webapps/{{ uri_resolver_name }}/WEB-INF/web.xml'
|
||||||
notify: Restart smartgears
|
notify: Restart smartgears
|
||||||
|
|
||||||
|
- name: Install the uri_resolver web.xml template
|
||||||
|
template: src=uri-resolver-web.xml.j2 dest={{ smartgears_instance_path }}/webapps/{{ uri_resolver_name }}/WEB-INF/web.xml mode=0440
|
||||||
|
notify: Restart smartgears
|
||||||
|
|
||||||
|
# - name: Copy the uri-resolver war file into the webapps directory
|
||||||
|
# copy: src={{ smartgears_downloads_dir }}/{{ uri_resolver_file }} dest={{ smartgears_instance_path }}/webapps/{{ uri_resolver_name }}.{{ uri_resolver_extension }} remote_src=yes force=yes
|
||||||
|
# notify: Restart smartgears
|
||||||
|
|
||||||
become: True
|
become: True
|
||||||
become_user: '{{ d4science_user }}'
|
become_user: '{{ d4science_user }}'
|
||||||
tags: [ 'smartgears', 'uri_resolver', 'tomcat' ]
|
tags: [ 'smartgears', 'uri_resolver', 'tomcat' ]
|
||||||
|
|
Loading…
Reference in New Issue