- name: detect if we have backports in the sources.list
command: fgrep backports /etc/apt/sources.list
register: backports
failed_when: backports.rc == 2
changed_when: False
- name: add backports repository
- name: detect if we have backports in the sources.list
command: fgrep backports /etc/apt/sources.list
register: backports
failed_when: backports.rc == 2
changed_when: False
- name: add backports repository
- name: get rid of packages we do not want
apt: name=exim4-base,rpcbind state=absent autoremove=yes
- name: install needrestart (from backports)
- name: get rid of packages we do not want
apt: name=exim4-base,rpcbind state=absent autoremove=yes
- name: install needrestart (from backports)
dest: /root/server-scripts
repo: 'git://ralfj.de/server-scripts'
version: 07d301fd8adeaf8ad40591a418da394ad37816ce
dest: /root/server-scripts
repo: 'git://ralfj.de/server-scripts'
version: 07d301fd8adeaf8ad40591a418da394ad37816ce