010fdce475fef458e978487bcd2006f4575872f7
[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     state: present
11
12 - name: configure haveged
13   lineinfile:
14     regexp: "^#?DAEMON_ARGS"
15     line: 'DAEMON_ARGS="-w 3072"'
16     path: /etc/default/haveged
17   notify: restart haveged
18
19 - name: make sure installer directories exists
20   with_items:
21     - "{{ debian_installer_path }}"
22     - "{{ preseed_path }}"
23   file:
24     name: "{{ item }}"
25     state: directory