From ced733bf1ca40ffea535d3cf7df3a01048464c88 Mon Sep 17 00:00:00 2001 From: "tommaso.piccioli" Date: Mon, 12 Oct 2015 18:19:23 +0200 Subject: [PATCH] Default backports in wheezy --- ubuntu-deb-general/files/backports | 3 +++ ubuntu-deb-general/tasks/packages.yml | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 ubuntu-deb-general/files/backports diff --git a/ubuntu-deb-general/files/backports b/ubuntu-deb-general/files/backports new file mode 100644 index 00000000..8d80fd03 --- /dev/null +++ b/ubuntu-deb-general/files/backports @@ -0,0 +1,3 @@ +Package: * +Pin: release a=wheezy-backports +Pin-Priority: 600 diff --git a/ubuntu-deb-general/tasks/packages.yml b/ubuntu-deb-general/tasks/packages.yml index 005214a2..9dbc4780 100644 --- a/ubuntu-deb-general/tasks/packages.yml +++ b/ubuntu-deb-general/tasks/packages.yml @@ -36,6 +36,12 @@ when: is_debian7 tags: wheezy-backports +- name: Default the backports repository on debian 7 + copy: src=backports dest=/etc/apt/preferences.d owner=root group=root mode=644 + register: update_apt_cache + when: is_debian7 + tags: Default-wheezy-backports + - name: Install the backports repository on debian 8 apt_repository: repo='deb http://http.debian.net/debian jessie-backports main' state=present register: update_apt_cache