diff --git a/roles/common/templates/sources.list.j2 b/roles/common/templates/sources.list.j2 index 3798fca..41d9b8f 100644 --- a/roles/common/templates/sources.list.j2 +++ b/roles/common/templates/sources.list.j2 @@ -1,3 +1,4 @@ +{% if ansible_distribution == 'Ubuntu' %} {% 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 deb http://extras.ubuntu.com/ubuntu {{ ansible_distribution_release }} main {% 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 #}