ansible-ops-management/templates/usr/libexec/rocky/rss.sh.j2
2023-09-05 01:53:58 -07:00

12 lines
594 B
Django/Jinja

#!/bin/bash
TARGET="{{ feeds_output_dir }}"
dnf clean all --enablerepo=\* > /dev/null 2>&1
{% for repo in repo_tracking %}
{% for arch in repo.arch %}
{% for repository in repo.repositories %}
/usr/libexec/rocky/rss.py --filename ${TARGET}/Rocky-Linux-{{ repo.release }}-{{ arch }}-{{ repository }}.xml --title "Rocky Linux {{ repo.release }} {{ arch }} {{ repository }}" --description "Recently updated packages for Rocky Linux {{ repo.release }} {{ arch }} {{ repository }}" --days 30 rl{{ repo.release }}-{{ arch }}-{{ repository }} > /dev/null 2>&1
{% endfor %}
{% endfor %}
{% endfor %}