vm/host: Install haveged on VM hosts
authornicoo <nicoo@realraum.at>
Fri, 8 Jun 2018 17:06:28 +0000 (19:06 +0200)
committernicoo <nicoo@realraum.at>
Fri, 8 Jun 2018 18:50:44 +0000 (20:50 +0200)
ansible/roles/vm/host/handlers/main.yml
ansible/roles/vm/host/tasks/main.yml

index 158f4dc..f6b5f80 100644 (file)
@@ -3,3 +3,8 @@
   service:
     name: openbsd-inetd
     state: restarted
+
+- name: restart haveged
+  service:
+    name: haveged
+    state: restarted
index 248f855..a7b018c 100644 (file)
@@ -1,5 +1,5 @@
 ---
-- name: install tftpd and python-libvirt
+- name: install dependencies
   apt:
     name:
       - atftpd
@@ -7,8 +7,16 @@
       - qemu-kvm
       - libvirt-bin
       - python-libvirt
+      - haveged
     state: present
 
+- name: configure haveged
+  lineinfile:
+    regexp: "^#?DAEMON_ARGS"
+    line: 'DAEMON_ARGS="-w 3072"'
+    path: /etc/default/haveged
+  notify: restart haveged
+
 - name: configure tftpd via inetd
   lineinfile:
     regexp: "^#?({{ vm_host.network.ip }}:)?tftp"