fhn-manager: when removing it, remove the active war file too.

This commit is contained in:
Andrea Dell'Amico 2017-10-11 16:43:24 +02:00
parent 5917457e48
commit 585e811051
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,10 @@
---
- block:
- name: Remove the old fhn-manager files
file: path={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }} state=absent
file: path={{ item }} state=absent
with_items:
- '{{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }}'
- '{{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }}.{{ fhn_extension }}'
notify: Restart smartgears
become: True
@ -25,7 +28,7 @@
copy: src={{ smartgears_downloads_dir }}/{{ fhn_manager_file }} dest={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }}.{{ fhn_extension }} force=yes remote_src=yes
notify: Restart smartgears
- name: Install the cron job that delete the /tmp directory every day
- name: Install the cron job that deletes the certificates from /tmp every day
cron: name="Delete tmp folder" special_time=daily job="find /tmp ! -name 'x509up_u1000' -type f -exec rm -f {} \; >/dev/null 2>&1"
- name: Install the cron job that refresh certificates every week