Merge pull request #33 from realraum/ansible/vm
[noc.git] / ansible / roles / vm / host / tasks / main.yml
index 248f855..dc9a0a3 100644 (file)
@@ -1,20 +1,19 @@
 ---
-- name: install tftpd and python-libvirt
+- name: install dependencies
   apt:
     name:
-      - atftpd
-      - openbsd-inetd
       - qemu-kvm
       - libvirt-bin
       - python-libvirt
+      - haveged
     state: present
 
-- name: configure tftpd via inetd
+- name: configure haveged
   lineinfile:
-    regexp: "^#?({{ vm_host.network.ip }}:)?tftp"
-    line: "{{ vm_host.network.ip }}:tftp               dgram   udp4    wait    nobody /usr/sbin/tcpd /usr/sbin/in.tftpd --tftpd-timeout 300 --retry-timeout 5 --maxthread 10 --verbose=5 {{ vm_host.installer.preseed_path }}"
-    path: /etc/inetd.conf
-  notify: restart inetd
+    regexp: "^#?DAEMON_ARGS"
+    line: 'DAEMON_ARGS="-w 3072"'
+    path: /etc/default/haveged
+  notify: restart haveged
 
 - name: make sure installer directories exists
   with_items: