forked from ISTI-ansible-roles/ansible-roles
fhn-manager: when removing it, remove the active war file too.
This commit is contained in:
parent
5917457e48
commit
585e811051
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue