diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2014-02-13 16:55:25 +0100 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2014-02-13 16:55:54 +0100 |
commit | 4ff31be209aa8d535ed09fc3a894f169314b7df8 (patch) | |
tree | a4035e79734a90edf2e1f7d98af94e5c86c8980a | |
parent | e14ec15544f36a412be1ee527b35a46875a6b394 (diff) |
Updated cronjob.
Change-Id: I7dfdd1a92ad4827826c0baf054391ac1be670ede
-rw-r--r-- | ansible/roles/status/tasks/cronjobs.yml | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/ansible/roles/status/tasks/cronjobs.yml b/ansible/roles/status/tasks/cronjobs.yml index 2a926ec..520b8dd 100644 --- a/ansible/roles/status/tasks/cronjobs.yml +++ b/ansible/roles/status/tasks/cronjobs.yml @@ -5,13 +5,12 @@ - cronjob - name: install-update-cronjob - cron: name='Update cards' cron_file=roadmap-cards-update state=present user={{ apache_user }} job={{ install_base }}/{{ install_dir }}/bin/roadmap_update_cron.sh minute=0 hour=0 - tags: - - cronjob - -# Apparently, also files in /etc/cron.d/ need to be +x to be executed. -# Cron manual says the contrary, but it does not work on Ubuntu. -- name: fix-cron-permission - file: state=file path=/etc/cron.d/roadmap-cards-update mode=0555 + cron: name='Update cards' + cron_file=roadmap-cards-update + state=present + user={{ apache_user }} + job={{ install_base }}/{{ install_dir }}/bin/roadmap_update_cron.sh + minute=3 + hour=1 tags: - cronjob |