roles/common: Add Debian support to sources.list template

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-07-24 19:54:16 +03:00
parent e15d1be867
commit 28f61d589e

View File

@ -1,3 +1,4 @@
{% if ansible_distribution == 'Ubuntu' %}
{% set apt_mirror = apt_mirror | default("ubuntu.mirror.ac.ke") %} {% set apt_mirror = apt_mirror | default("ubuntu.mirror.ac.ke") %}
############################################################# #############################################################
@ -19,3 +20,11 @@ deb http://archive.canonical.com/ubuntu {{ ansible_distribution_release }} partn
###### Ubuntu Extras Repo ###### Ubuntu Extras Repo
deb http://extras.ubuntu.com/ubuntu {{ ansible_distribution_release }} main deb http://extras.ubuntu.com/ubuntu {{ ansible_distribution_release }} main
{% endif %} {% endif %}
{% else %}
{% set apt_mirror = apt_mirror | default('debian.mirror.ac.ke') %}
deb http://{{ apt_mirror }}/debian/ {{ ansible_distribution_release }} main contrib non-free
deb http://security.debian.org/ {{ ansible_distribution_release }}/updates main contrib non-free
deb http://debian.mirror.ac.ke/debian/ {{ ansible_distribution_release }}-updates main contrib non-free
{% endif %} {# ansible_distribution #}