diff --git a/group_vars/mirror_backend.yml b/group_vars/mirror_backend.yml index 809e5771d0bc2088028bea3c24827a37ed66a63f..340828c9bfdedde36be1fd8d0a2dc3a6d786d0cc 100644 --- a/group_vars/mirror_backend.yml +++ b/group_vars/mirror_backend.yml @@ -82,7 +82,8 @@ glob_apt_mirror: scheme: https host: packages.grafana.com path: oss/deb - suite: stable + suite: + - stable components: - main - name: proxmox @@ -90,6 +91,8 @@ glob_apt_mirror: scheme: http host: download.proxmox.com path: debian/pve - suite: buster + suite: + - buster + - bullseye components: - pve-no-subscription diff --git a/roles/apt-mirror/templates/apt/mirror.list.j2 b/roles/apt-mirror/templates/apt/mirror.list.j2 index ace1136f76ab67a5d63b1e7c2697a3eae2262e1e..58b7a46b39fa7d443092a6cccd73b192ade9e3a1 100644 --- a/roles/apt-mirror/templates/apt/mirror.list.j2 +++ b/roles/apt-mirror/templates/apt/mirror.list.j2 @@ -1,3 +1,5 @@ +{{ ansible_header | comment }} + ############# config ################## # # set base_path /var/spool/apt-mirror @@ -15,7 +17,9 @@ set _tilde 0 ############# end config ############## {% for target in apt_mirror.targets %} -deb {{ target.scheme }}://{{ target.host }}/{{ target.path }} {{ target.suite }}{% for component in target.components %} {{ component }}{% endfor %} +{% for suite in target.suite %} +deb {{ target.scheme }}://{{ target.host }}/{{ target.path }} {{ suite }}{% for component in target.components %} {{ component }}{% endfor %} +{% endfor %} clean {{ target.scheme }}://{{ target.host }}/{{ target.path }}