diff --git a/ubuntu-deb-general/files/backports b/ubuntu-deb-general/files/backports new file mode 100644 index 0000000..8d80fd0 --- /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 005214a..9dbc478 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