1 # basic system preparation
5 - name: check minimal system version
6 when: not (ansible_distribution == "Debian" and ansible_lsb.major_release|int >= 9)
8 - name: detect if we have backports in the sources.list
9 command: fgrep backports /etc/apt/sources.list
11 failed_when: backports.rc == 2
13 - name: add backports repository
14 when: backports.rc != 0
15 apt_repository: repo='deb http://httpredir.debian.org/debian {{ansible_distribution_release}}-backports main contrib non-free' state=present update_cache=yes
16 - name: get rid of packages we do not want
17 apt: name=exim4-base,rpcbind state=absent autoremove=yes
18 - name: install needrestart (from backports)
19 apt: name=needrestart state=latest default_release={{ansible_distribution_release}}-backports
20 - name: install some basic tools
21 apt: name=aptitude,rsync,git,curl,apt-transport-https,psmisc state=latest
23 - name: clone server-scripts git repository
25 dest: /root/server-scripts
26 repo: 'git://ralfj.de/server-scripts'
27 version: 07d301fd8adeaf8ad40591a418da394ad37816ce
29 - name: configure root shell
31 dest: /root/{{ item }}
33 src: /etc/skel/{{ item }}