vm/host: Install haveged on VM hosts
[noc.git] / ansible / roles / vm / host / tasks / main.yml
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"