ansible-ops-management/templates/usr/libexec/rocky/rss.sh.j2
2023-09-18 15:49:43 -07:00

12 lines
626 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 --link "https://rockylinux.org" --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 %}