ansible-ops-management/templates/usr/libexec/rocky/rss.sh.j2
2023-09-04 23:44:53 -07:00

13 lines
590 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 }}" -r 30 rl{{ repo.release }}-{{ arch }}-{{ repository }} > /dev/null 2>&1
{% endfor %}
{% endfor %}
{% endfor %}