## SSH keys for root, default to NOC's
ssh_users_root: "{{ user_groups.noc }}"
+
+base_debian_mirrors:
+ - https://deb.realraum.at
+ - https://debian.ffgraz.net
dest: /etc/apt/apt.conf.d/
mode: 0644
+- name: Install apt-transport-https
+ apt:
+ name: apt-transport-https
+ state: present
+
+- name: Template sources.list
+ template:
+ dest: /etc/apt/sources.list
+ src: sources.list.j2
+ mode: 0644
+
- name: install basic packages
apt:
name:
--- /dev/null
+{% macro deb(path, suite) -%}
+{% for type in ['deb', 'deb-src'] %}
+{% for mirror in base_debian_mirrors %}
+{{ type }} {{ mirror }}/{{ path }} main
+{% endfor %}
+{% endfor %}
+{%- endmacro %}
+{{ ansible_managed | comment }}
+
+# Main Debian archive
+{{ deb('debian', ansible_distribution_release) }}
+
+# Security updates
+{{ deb('debian-security', ansible_distribution_release + '/updates') }}
+
+# {{ ansible_distribution_release }}-updates, previously known as 'volatile'
+{{ deb('debian', ansible_distribution_release + '-updates') }}