diff options
Diffstat (limited to 'roles/vm-host')
-rw-r--r-- | roles/vm-host/handlers/main.yaml | 5 | ||||
-rw-r--r-- | roles/vm-host/tasks/main.yaml | 26 |
2 files changed, 31 insertions, 0 deletions
diff --git a/roles/vm-host/handlers/main.yaml b/roles/vm-host/handlers/main.yaml new file mode 100644 index 00000000..158f4dcd --- /dev/null +++ b/roles/vm-host/handlers/main.yaml @@ -0,0 +1,5 @@ +--- +- name: restart inetd + service: + name: openbsd-inetd + state: restarted diff --git a/roles/vm-host/tasks/main.yaml b/roles/vm-host/tasks/main.yaml new file mode 100644 index 00000000..4c216d27 --- /dev/null +++ b/roles/vm-host/tasks/main.yaml @@ -0,0 +1,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 |