aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-12-21 11:41:26 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2018-12-21 11:41:48 +0100
commit98e24f4ebba276815488b393cb6937e12a21c1d2 (patch)
treeca2374e8d531e9dea4901853408f05febb675b66 /ansible/roles
parenta4bcb2caba43bf10700025f936d21717fa737977 (diff)
downloadinfra-98e24f4ebba276815488b393cb6937e12a21c1d2.tar.gz
infra-98e24f4ebba276815488b393cb6937e12a21c1d2.tar.bz2
infra-98e24f4ebba276815488b393cb6937e12a21c1d2.tar.xz
infra-98e24f4ebba276815488b393cb6937e12a21c1d2.zip
packages
Diffstat (limited to 'ansible/roles')
-rw-r--r--ansible/roles/packages/tasks/main.yml36
1 files changed, 27 insertions, 9 deletions
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