Added tasks to configure tftpd
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
This commit is contained in:
parent
65dab3decb
commit
f7eb8358fe
1 changed files with 23 additions and 0 deletions
23
tasks/config_tftpd.yml
Normal file
23
tasks/config_tftpd.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue