summaryrefslogtreecommitdiff
path: root/roles/vm/host/tasks/main.yml
blob: 010fdce475fef458e978487bcd2006f4575872f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
- name: install dependencies
  apt:
    name:
      - qemu-kvm
      - # configuration package, pulls in libvirt-clients and libvirt-daemon
        libvirt-daemon-system
      - 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: make sure installer directories exists
  with_items:
    - "{{ debian_installer_path }}"
    - "{{ preseed_path }}"
  file:
    name: "{{ item }}"
    state: directory