1 # basic system package preparation
4 - name: detect if we have backports in the sources.list
5 command: fgrep backports /etc/apt/sources.list
8 - name: add backports repository
9 apt_repository: repo='deb http://httpredir.debian.org/debian {{ansible_distribution_release}}-backports main contrib non-free' state=present update_cache=yes
10 when: backports is failed
11 - name: get rid of packages we do not want
12 apt: name=exim4-base,rpcbind state=absent autoremove=yes
13 - name: install latest version of some packages, coming from backports if possible
14 apt: name=needrestart state=latest default_release={{ansible_distribution_release}}-backports