Add a tftp_server role for noc/dhcp01

This commit is contained in:
Kevin Fenzi 2014-07-10 22:14:09 +00:00
parent 9117585832
commit e280dd0802
2 changed files with 119 additions and 0 deletions

View file

@ -0,0 +1,31 @@
---
- name: install tftp server package
yum: state=installed name=tftp-server
tags:
- packages
- tftp_server
- name: install syslinux package
yum: state=installed name=syslinux
tags:
- packages
- tftp_server
- name: setup pxelinux.cfg dir
file: path=/var/lib/tftpboot/pxelinux.cfg mode=755 state=directory
tags:
- config
- tftp_server
- name: setup pxelinux.cfg default file
copy: src=default dest=/var/lib/tftpboot/pxelinux.cfg/default mode=644
tags:
- config
- tftp_server
- name: enable tftp socket service
service: state=running enabled=true name=tftp.socket
tags:
- service
- config
- tftp_server