blob: 4c216d27208b2147f811fd42b9aae03d2cf9355e (
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
|
---
- name: install tftpd and python-libvirt
with_items:
- atftpd
- openbsd-inetd
- python-libvirt
apt:
name: "{{ item }}"
state: present
- name: configure tftpd via inetd
lineinfile:
regexp: "^#?tftp"
line: "tftp dgram udp4 wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd --tftpd-timeout 300 --retry-timeout 5 --maxthread 10 --verbose=5 {{ vm_host.installer.preseed_path }}"
path: /etc/inetd.conf
notify: restart inetd
- name: make sure installer directories exists
with_items:
- "{{ vm_host.installer.path }}"
- "{{ vm_host.installer.preseed_path }}"
file:
name: "{{ item }}"
state: directory
# TODO: download installer images
|