1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash EXITSTATUS=0 {% for repo in yum_mirror_repositories %} # {{ repo.name }} dnf reposync \ --norepopath \ --download-path {{ yum_mirror_webroot }}/{{ repo.path }} \ --download-metadata \ --delete \ --quiet \ --repo {{ repo.id }} || EXITSTATUS=1 {% endfor %} exit $EXITSTATUS