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