From f7eb8358fef28ebaf990603018f749ea96fa7390 Mon Sep 17 00:00:00 2001 From: Larry Smith Jr Date: Wed, 20 Jan 2016 17:52:24 -0500 Subject: [PATCH] Added tasks to configure tftpd Signed-off-by: Larry Smith Jr --- tasks/config_tftpd.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tasks/config_tftpd.yml diff --git a/tasks/config_tftpd.yml b/tasks/config_tftpd.yml new file mode 100644 index 0000000..e077a9e --- /dev/null +++ b/tasks/config_tftpd.yml @@ -0,0 +1,23 @@ +--- +- name: config_tftpd | ensuring tftp_directory exists + file: + dest: "{{ tftp_directory }}" + state: directory + +- name: config_tftpd | configuring tftpd + template: + src: "etc/default/tftpd-hpa.j2" + dest: "/etc/default/tftpd-hpa" + owner: root + group: root + mode: 0644 + notify: restart tftpd-hpa + +- name: config_tftpd | configuring inetd + template: + src: "etc/inetd.conf.j2" + dest: "/etc/inetd.conf" + owner: root + group: root + mode: 0644 + notify: restart tftpd-hpa