From 98e24f4ebba276815488b393cb6937e12a21c1d2 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 21 Dec 2018 11:41:26 +0100 Subject: packages --- ansible/roles/packages/tasks/main.yml | 36 ++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) (limited to 'ansible/roles') diff --git a/ansible/roles/packages/tasks/main.yml b/ansible/roles/packages/tasks/main.yml index 45f64c3..45077cc 100644 --- a/ansible/roles/packages/tasks/main.yml +++ b/ansible/roles/packages/tasks/main.yml @@ -5,18 +5,36 @@ become: yes copy: dest: /etc/apt/sources.list - content: | - deb http://ftp.no.debian.org/debian/ stretch main contrib non-free - deb-src http://ftp.no.debian.org/debian/ stretch main contrib non-free + content: "{{ versions[packages__version] }}" + vars: + versions: + stretch: | + deb http://ftp.no.debian.org/debian/ stretch main contrib non-free + deb-src http://ftp.no.debian.org/debian/ stretch main contrib non-free + + deb http://security.debian.org/debian-security stretch/updates main contrib non-free + deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free + + deb http://ftp.no.debian.org/debian/ stretch-updates main contrib non-free + deb-src http://ftp.no.debian.org/debian/ stretch-updates main contrib non-free + + {{ '' if packages__enable_backports else '#' }}deb http://ftp.no.debian.org/debian/ stretch-backports main contrib non-free + {{ '' if packages__enable_backports else '#' }}deb-src http://ftp.no.debian.org/debian/ stretch-backports main contrib non-free + jessie: | + deb http://ftp.no.debian.org/debian/ jessie main contrib non-free + deb-src http://ftp.no.debian.org/debian/ jessie main contrib non-free - deb http://security.debian.org/debian-security stretch/updates main contrib non-free - deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free + deb http://security.debian.org/debian-security jessie/updates main contrib non-free + deb-src http://security.debian.org/debian-security jessie/updates main contrib non-free - deb http://ftp.no.debian.org/debian/ stretch-updates main contrib non-free - deb-src http://ftp.no.debian.org/debian/ stretch-updates main contrib non-free + deb http://ftp.no.debian.org/debian/ jessie-updates main contrib non-free + deb-src http://ftp.no.debian.org/debian/ jessie-updates main contrib non-free - {{ '' if packages__enable_backports else '#' }}deb http://ftp.no.debian.org/debian/ stretch-backports main contrib non-free - {{ '' if packages__enable_backports else '#' }}deb-src http://ftp.no.debian.org/debian/ stretch-backports main contrib non-free + {{ '' if packages__enable_backports else '#' }}deb http://ftp.no.debian.org/debian/ jessie-backports main contrib non-free + {{ '' if packages__enable_backports else '#' }}deb-src http://ftp.no.debian.org/debian/ jessie-backports main contrib non-free + unstable: | + deb http://ftp.no.debian.org/debian/ unstable main contrib non-free + deb-src http://ftp.no.debian.org/debian/ unstable main contrib non-free - name: Enable backports repository by default when: packages__enable_backports -- cgit v1.2.3