forked from ISTI-ansible-roles/ansible-roles
18 lines
645 B
YAML
18 lines
645 B
YAML
|
---
|
||
|
- block:
|
||
|
|
||
|
- name: Remove the installed accounting-service before upgrading
|
||
|
file: dest={{ item }} state=absent
|
||
|
with_items:
|
||
|
- '{{ smartgears_instance_path }}/webapps/accounting-service'
|
||
|
- '{{ smartgears_instance_path }}/webapps/accounting-service.war'
|
||
|
when: smartgears_upgrade
|
||
|
|
||
|
- name: Get the accounting-service war file
|
||
|
get_url: url={{ accounting_service_url }} dest={{ smartgears_instance_path }}/webapps/{{ accounting_service_war_file }}
|
||
|
|
||
|
become: True
|
||
|
become_user: '{{ smartgears_user }}'
|
||
|
when: accounting_service_install
|
||
|
tags: [ 'smartgears', 'accounting_service', 'tomcat' ]
|