ansible-roles/smartgears/home_library/tasks/main.yml

23 lines
1015 B
YAML
Raw Normal View History

---
- block:
- name: Remove the installed HOME LIBRARY connector before upgrading
file: dest={{ item }} state=absent
with_items:
- '{{ smartgears_instance_path }}/webapps/home-library-webapp'
- '{{ smartgears_instance_path }}/webapps/home-library-webapp.war'
when: smartgears_upgrade
- name: Get the HOME LIBRARY connector war file
get_url: url={{ home_library_url }} dest={{ smartgears_instance_path }}/webapps/{{ home_library_war_file }}
# - name: Unpack the HOME LIBRARY connector war file
# shell: mkdir {{ smartgears_instance_path }}/webapps/home-library-webapp ; cd {{ smartgears_instance_path }}/webapps/home-library-webapp ; jar xf {{ smartgears_instance_path }}/webapps/{{ home_library_war_file }}
# args:
# creates: '{{ smartgears_instance_path }}/webapps/home-library-webapp/WEB-INF/web.xml'
become: True
become_user: '{{ smartgears_user }}'
when: home_library_install
tags: [ 'smartgears', 'home_library', 'tomcat' ]