../library/roles/smartgears/fhn_manager/tasks/main.yml add cronjob task

This commit is contained in:
Roberto Cirillo 2017-10-02 18:12:53 +02:00
parent 08fe2fd5db
commit 678f74dafa
1 changed files with 3 additions and 0 deletions

View File

@ -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 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 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: True
become_user: '{{ d4science_user }}' become_user: '{{ d4science_user }}'
when: fhn_manager_install when: fhn_manager_install