Commit a706dc54 authored by nanahira's avatar nanahira

support ubuntu ports

parent ba64b679
Pipeline #10260 passed with stage
in 3 minutes and 5 seconds
......@@ -9,6 +9,7 @@ mirror_debian: http://deb.debian.org
mirror_debian_security: http://security.debian.org
mirror_ubuntu: http://archive.ubuntu.com
mirror_ubuntu_security: http://security.ubuntu.com
mirror_ubuntu_ports: http://ports.ubuntu.com
mirror_docker: https://download.docker.com
china_mirror: false
install_docker: true
......
......@@ -61,6 +61,7 @@
mirror_debian_security: http://mirrors.tuna.tsinghua.edu.cn
mirror_ubuntu: http://mirrors.tuna.tsinghua.edu.cn
mirror_ubuntu_security: http://mirrors.tuna.tsinghua.edu.cn
mirror_ubuntu_ports: http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports
when: china_mirror
- name: keep old distribution
set_fact:
......
......@@ -2,10 +2,17 @@
{% 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
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}} {{ target_distribution }} main restricted universe multiverse
deb {{mirror_ubuntu_ports}} {{ target_distribution }}-security main restricted universe multiverse
deb {{mirror_ubuntu_ports}} {{ target_distribution }}-updates main restricted universe multiverse
{% endif %}
{% else %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment