summaryrefslogtreecommitdiff
path: root/roles/vm/host/tasks/main.yml
blob: f83b7d0baa24d7858354f1b9f961a09d972bcef2 (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
26
27
---
- name: install dependencies
  apt:
    name:
      - qemu-kvm
      - # configuration package, pulls in libvirt-clients and libvirt-daemon
        libvirt-daemon-system
      - python-libvirt
      - haveged
      - bridge-utils
      - acl
    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
  loop:
    - "{{ debian_installer_path }}"
    - "{{ preseed_path }}"
  file:
    name: "{{ item }}"
    state: directory