base: Only install haveged on physical machines no-rngd-no-more
authornicoo <nicoo@realraum.at>
Thu, 6 Feb 2020 17:17:19 +0000 (18:17 +0100)
committernicoo <nicoo@realraum.at>
Thu, 6 Feb 2020 19:15:11 +0000 (20:15 +0100)
Doing otherwise would conflict with vm/guest.

Installing it only in vm/host is insufficient: we have physical machines that
aren't used as hypervisors, such as wuerfel.

ansible/roles/base/tasks/02debian.yml

index 7aef268..3154ef4 100644 (file)
@@ -16,7 +16,6 @@
       - tcpdump
       - debian-goodies
       - lsof
-      - haveged
       - net-tools
       - screen
       - aptitude
       - lshw
     state: present
 
+- name: Install haveged on physical machines
+  when: "'virtualservers' not in group_names"
+  apt:
+    name: haveged
+    state: present
+
 - name: make sure grml-(etc|scripts)-core is not installed
   apt:
     name: