managed web.xml inside uri-resolver webapp
This commit is contained in:
parent
810c5c09ac
commit
5500ed9afd
|
@ -21,10 +21,24 @@
|
|||
file: path={{ smartgears_instance_path }}/webapps/{{ uri_resolver_name }} state=absent
|
||||
notify: Restart smartgears
|
||||
when: uri_resolver_download is changed
|
||||
|
||||
- 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
|
||||
|
||||
- name: Create the uri-resolver webapp directory
|
||||
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
|
||||
|
||||
- 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_user: '{{ d4science_user }}'
|
||||
|
|
Loading…
Reference in New Issue