From d0ae5f84a7a1339fcaf07051ba6ef6e61bd023cb Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 12 Feb 2019 11:58:50 +0100 Subject: [PATCH] Export the repo info as JSON every two hours Signed-off-by: Pierre-Yves Chibon --- roles/distgit/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/distgit/tasks/main.yml b/roles/distgit/tasks/main.yml index 3d93ec1fc1..1ea8d0729a 100644 --- a/roles/distgit/tasks/main.yml +++ b/roles/distgit/tasks/main.yml @@ -213,6 +213,18 @@ - config - distgit +- name: dumps the state of the repos in JSON + cron: + name: "dumps the state of the repos in JSON" + job: "repospanner --config /etc/pagure/repospanner-admin.yml admin repo list --json | python -m json.tool > /srv/cache/extras/repoinfo.json" + hour: */2 + minute: 5 + state: present + when: env == "staging" + tags: + - config + - distgit + # -- Gitolite -------------------------------------------- # This is the permission management for package maintainers, using Gitolite. - name: create the /var/log/gitolite directory