---
- name: install haveged
  package:
    name: haveged
    state: present

- name: start and enable systemd unit haveged
  systemd:
    name: haveged
    enabled: yes
    state: started