From eeba093b476c935e958e6db21444739a0078f599 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 11 Dec 2017 10:13:24 +0100 Subject: limit tftp server to vm bridge --- roles/vm-host/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/vm-host') diff --git a/roles/vm-host/tasks/main.yaml b/roles/vm-host/tasks/main.yaml index 81262737..28ac43d7 100644 --- a/roles/vm-host/tasks/main.yaml +++ b/roles/vm-host/tasks/main.yaml @@ -13,7 +13,7 @@ - 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 }}" + line: "{{ vm_host.network.ip }}: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 -- cgit v1.2.3