From 2956b37bcd3031d4b52230fc5c4004600552b2b7 Mon Sep 17 00:00:00 2001 From: nicoo Date: Fri, 8 Jun 2018 19:06:28 +0200 Subject: [PATCH] vm/host: Install haveged on VM hosts --- ansible/roles/vm/host/handlers/main.yml | 5 +++++ ansible/roles/vm/host/tasks/main.yml | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ansible/roles/vm/host/handlers/main.yml b/ansible/roles/vm/host/handlers/main.yml index 158f4dc..f6b5f80 100644 --- a/ansible/roles/vm/host/handlers/main.yml +++ b/ansible/roles/vm/host/handlers/main.yml @@ -3,3 +3,8 @@ service: name: openbsd-inetd state: restarted + +- name: restart haveged + service: + name: haveged + state: restarted diff --git a/ansible/roles/vm/host/tasks/main.yml b/ansible/roles/vm/host/tasks/main.yml index 248f855..a7b018c 100644 --- a/ansible/roles/vm/host/tasks/main.yml +++ b/ansible/roles/vm/host/tasks/main.yml @@ -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" -- 1.7.10.4