forked from LibreSchool/server-config
19 lines
531 B
YAML
19 lines
531 B
YAML
---
|
|
# TFTP
|
|
|
|
# TFTP is included in DHCP module in NethServer 7
|
|
|
|
- name: Checking TFTP configuration
|
|
shell: /sbin/e-smith/db configuration getprop dnsmasq dhcp-boot
|
|
register: chk_tftp_enabled
|
|
changed_when: "'pxelinux.0' not in chk_tftp_enabled.stdout"
|
|
ignore_errors: yes
|
|
|
|
- name: Configuring TFTP
|
|
shell: /sbin/e-smith/db configuration setprop dnsmasq dhcp-boot pxelinux.0
|
|
when: chk_tftp_enabled|changed
|
|
|
|
- name: Activating tftp
|
|
shell: /sbin/e-smith/signal-event nethserver-dnsmasq-save
|
|
when: chk_tftp_enabled|changed
|