blob: 01286968dc70c70d8df21646ce1e6ad82faf7f8d [file] [log] [blame]
Zack Williams5b5d9a72020-11-06 13:59:06 -07001---
2# pxeboot tasks/main.yml
3#
4# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
5# SPDX-License-Identifier: Apache-2.0
6
7- name: include OS-specific vars
8 include_vars: "{{ ansible_os_family }}.yml"
9
10- name: include OS-specific tasks
11 include_tasks: "{{ ansible_os_family }}.yml"
12
13- name: Create pxeboot dist dir
14 file:
15 state: directory
16 path: "{{ pxeboot_dist_dir }}"
17 owner: "{{ pxeboot_username }}"
18 group: "{{ pxeboot_groupname }}"
19 mode: "0755"
20
21- name: Create pxeboot webroot dir (may already exist from webserver role)
22 file:
23 state: directory
24 path: "{{ pxeboot_web_root }}"
25 owner: "{{ pxeboot_username }}"
26 group: "{{ pxeboot_groupname }}"
27 mode: "0755"
28
29# create boot targets
30- include_tasks: "memtest.yml"
31- include_tasks: "ubuntu1804.yml"
32
33- name: Create iPXE menu chainboot script from template
34 template:
35 src: "boot.ipxe.j2"
36 dest: "{{ pxeboot_web_root }}/boot.ipxe"
37 owner: "{{ pxeboot_username }}"
38 group: "{{ pxeboot_groupname }}"
39 mode: 0644