summaryrefslogtreecommitdiff
path: root/roles/vm-host/tasks
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-11-22 23:34:09 +0100
committerChristian Pointner <equinox@spreadspace.org>2017-11-22 23:34:09 +0100
commitddb43fb5860676f7e3292fdd65856572339ebce7 (patch)
tree68a1f2108c969cb9954d569adcc1029974cda89a /roles/vm-host/tasks
parentminor cleanup (diff)
added inital role vm-host
Diffstat (limited to 'roles/vm-host/tasks')
-rw-r--r--roles/vm-host/tasks/main.yaml26
1 files changed, 26 insertions, 0 deletions
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