diff --git a/smartgears/fhn_manager/tasks/main.yml b/smartgears/fhn_manager/tasks/main.yml index 05f078df..35e1aeac 100644 --- a/smartgears/fhn_manager/tasks/main.yml +++ b/smartgears/fhn_manager/tasks/main.yml @@ -25,6 +25,9 @@ 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 + cron: name="Delete tmp folder" special_time=daily job="find /tmp ! -name 'x509up_u1000' -type f -exec rm -f {} \; >/dev/null 2>&1" + become: True become_user: '{{ d4science_user }}' when: fhn_manager_install