19 lines
531 B
YAML
Raw Permalink Normal View History

---
# TFTP
2018-11-28 00:41:11 +01:00
# 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
2018-11-28 00:41:11 +01:00
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