forked from ISTI-ansible-roles/ansible-roles
smartgears: do not stop the service if it's the first installation.
This commit is contained in:
parent
3eb0e0a126
commit
945c5a61ca
|
@ -33,11 +33,21 @@
|
||||||
- ( smartgears_download | changed )
|
- ( smartgears_download | changed )
|
||||||
tags: [ 'smartgears', 'tomcat' ]
|
tags: [ 'smartgears', 'tomcat' ]
|
||||||
|
|
||||||
|
- name: Check if the smartgears stop script exists
|
||||||
|
become: True
|
||||||
|
become_user: '{{ smartgears_user }}'
|
||||||
|
stat: path=/home/{{ smartgears_user }}/stopContainer.sh
|
||||||
|
when: smartgears_upgrade or ( smartgears_download | changed )
|
||||||
|
register: smartgears_stop_script
|
||||||
|
tags: [ 'smartgears', 'tomcat', 'stop_smartgears_service' ]
|
||||||
|
|
||||||
- name: Stop the smartgears container before launching the upgrade script
|
- name: Stop the smartgears container before launching the upgrade script
|
||||||
become: True
|
become: True
|
||||||
become_user: '{{ smartgears_user }}'
|
become_user: '{{ smartgears_user }}'
|
||||||
shell: /home/{{ smartgears_user }}/stopContainer.sh
|
shell: /home/{{ smartgears_user }}/stopContainer.sh
|
||||||
when: smartgears_upgrade or ( smartgears_download | changed )
|
when:
|
||||||
|
- smartgears_upgrade or ( smartgears_download | changed )
|
||||||
|
- smartgears_stop_script.exists
|
||||||
tags: [ 'smartgears', 'tomcat', 'stop_smartgears_service' ]
|
tags: [ 'smartgears', 'tomcat', 'stop_smartgears_service' ]
|
||||||
|
|
||||||
- name: Install the additional tomcat default file
|
- name: Install the additional tomcat default file
|
||||||
|
|
Loading…
Reference in New Issue