base: Only install haveged on physical machines
[noc.git] / ansible / roles / base / tasks / 02debian.yml
1 ---
2 - name: disable apt suggests and recommends
3   copy:
4     src: 02no-recommends
5     dest: /etc/apt/apt.conf.d/
6     mode: 0644
7
8 - name: install basic packages
9   apt:
10     name:
11       - less
12       - psmisc
13       - sudo
14       - dstat
15       - mtr-tiny
16       - tcpdump
17       - debian-goodies
18       - lsof
19       - net-tools
20       - screen
21       - aptitude
22       - unp
23       - ca-certificates
24       - file
25       - nano
26       - python-apt
27       - command-not-found
28       - man-db
29       - lshw
30     state: present
31
32 - name: Install haveged on physical machines
33   when: "'virtualservers' not in group_names"
34   apt:
35     name: haveged
36     state: present
37
38 - name: make sure grml-(etc|scripts)-core is not installed
39   apt:
40     name:
41       - grml-etc-core
42       - grml-scripts-core
43     state: absent
44     purge: yes