- Ansible 2.0 or higher.
- CentOS 6.x or CentOS 7.x
Requires Ansible modules:
- apache
- Create the directory structure
files/pxe/ksat the root of your ansible repo - Place any kickstart files in
files/pxe/kswith the extension.ks. - Define at least one DHCP scope using the vars below. NOTE: One scope must match the network of an adapter on the system.
- Define any PXE boot images or entries.
- Include the pxe and apache roles in your playbook.
pxe_boot_title: "Build Server"
Title displayed on the boot menu
pxe_boot_images:
- name: CentOS-7.5-x86_64
base_dl_url: http://mirror.centos.org/centos-7/7/os/x86_64/images/pxeboot/
A list of dicts with PXE boot images to download and make available.
pxe_boot_entries:
- label: CentOS-7.5-x86_64
boot_image_name: CentOS-7.5-x86_64
kickstart_name: ""
append_options: ""
A list of dicts for PXE boot entries to populate the default pxeboot config file.
pxe_dhcp_scopes:
- network:
netmask:
gateway:
start_ip:
end_ip:
A list of dicts to define DHCP scopes. If this is an empty list, the DHCP service won't be configured.