# Generated by MyCard Init

{% if ansible_distribution == 'Ubuntu' %}

{% if ansible_architecture == 'x86_64' %}
# Ubuntu
deb {{mirror_ubuntu}}/ubuntu {{ target_distribution }} main restricted universe multiverse
deb {{mirror_ubuntu_security}}/ubuntu {{ target_distribution }}-security main restricted universe multiverse
deb {{mirror_ubuntu}}/ubuntu {{ target_distribution }}-updates main restricted universe multiverse
{% else %}
# Ubuntu ports
deb {{mirror_ubuntu_ports}}/ubuntu-ports {{ target_distribution }} main restricted universe multiverse
deb {{mirror_ubuntu_ports}}/ubuntu-ports {{ target_distribution }}-security main restricted universe multiverse
deb {{mirror_ubuntu_ports}}/ubuntu-ports {{ target_distribution }}-updates main restricted universe multiverse
{% endif %}

{% else %}

# Debian
deb {{mirror_debian}}/debian {{ target_distribution }} {{ debian_sources_list_tail }}
{% if target_distribution != 'sid' %}
deb {{mirror_debian}}/debian {{ target_distribution }}-updates {{ debian_sources_list_tail }}
{% if target_distribution == 'bullseye' or target_distribution == 'bookworm' or target_distribution == 'trixie' or target_distribution == 'testing' %}
deb {{mirror_debian_security}}/debian-security {{ target_distribution }}-security {{ debian_sources_list_tail }}
{% else %}
deb {{mirror_debian_security}}/debian-security {{ target_distribution }}/updates {{ debian_sources_list_tail }}
{% endif %}
deb {{mirror_debian}}/debian {{ target_distribution }}-backports {{ debian_sources_list_tail }}
{% else %}
deb {{mirror_debian}}/debian experimental {{ debian_sources_list_tail }}
{% endif %}

{% endif %}

{% if ansible_kernel.endswith("-pve") %}
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian {{ target_distribution }} pve-no-subscription
{% endif %}
