diff --git a/roles/pdc/backend/files/pdc-audit.cron b/roles/pdc/backend/files/pdc-audit.cron new file mode 100644 index 0000000000..f986fbbc20 --- /dev/null +++ b/roles/pdc/backend/files/pdc-audit.cron @@ -0,0 +1,3 @@ +# run once a day and report +MAILTO=releng-cron@lists.fedoraproject.org +0 18 * * * root /usr/local/bin/lock-wrapper /usr/bin/pdc-updater-audit diff --git a/roles/pdc/backend/tasks/main.yml b/roles/pdc/backend/tasks/main.yml index 894bee9e00..df85adeb11 100644 --- a/roles/pdc/backend/tasks/main.yml +++ b/roles/pdc/backend/tasks/main.yml @@ -22,3 +22,9 @@ - pdcupdater.py notify: restart fedmsg-hub tags: pdc + +- name: setup cron for a daily audit script + copy: src=pdc-audit.cron dest=/etc/cron.d/pdc-audit.cron mode=0755 + tags: + - pdc + - cron