From 678f74dafa62088c75b02dcbde8e172641d6fdc6 Mon Sep 17 00:00:00 2001 From: Roberto Date: Mon, 2 Oct 2017 18:12:53 +0200 Subject: [PATCH] ../library/roles/smartgears/fhn_manager/tasks/main.yml add cronjob task --- smartgears/fhn_manager/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) 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