vm/host: add missing dependencies
[noc.git] / ansible / roles / vm / host / tasks / main.yml
1 ---
2 - name: install dependencies
3   apt:
4     name:
5       - qemu-kvm
6       - # configuration package, pulls in libvirt-clients and libvirt-daemon
7         libvirt-daemon-system
8       - python-libvirt
9       - haveged
10       - bridge-utils
11       - acl
12     state: present
13
14 - name: configure haveged
15   lineinfile:
16     regexp: "^#?DAEMON_ARGS"
17     line: 'DAEMON_ARGS="-w 3072"'
18     path: /etc/default/haveged
19   notify: restart haveged
20
21 - name: make sure installer directories exists
22   with_items:
23     - "{{ debian_installer_path }}"
24     - "{{ preseed_path }}"
25   file:
26     name: "{{ item }}"
27     state: directory