ansible/roles/apt-mirror/templates/apt/mirror.list.j2

28 lines
762 B
Django/Jinja

{{ ansible_header | comment }}
############# config ##################
#
# set base_path /var/spool/apt-mirror
#
set mirror_path {{ apt_mirror.root }}
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads 20
set _tilde 0
#
############# end config ##############
{% for target in apt_mirror.targets %}
{% 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 }}
{% endfor %}