---
# Set the boot mode (BIOS, UEFI) of Dell baremetal compute nodes.

# Add Dell baremetal compute nodes to the Ansible inventory.
- import_playbook: dell-compute-node-inventory.yml

- name: Ensure Dell baremetal compute nodes boot mode is set
  hosts: baremetal-compute
  gather_facts: no
  max_fail_percentage: >-
    {{ dell_compute_node_boot_mode_max_fail_percentage |
       default(baremetal_compute_max_fail_percentage) |
       default(kayobe_max_fail_percentage) |
       default(100) }}
  vars:
    # Set this to the required boot mode. One of 'bios' or 'uefi'.
    drac_boot_mode: "bios"
  roles:
    - role: ssh-known-host
    - role: drac-boot-mode
