26 lines
953 B
YAML
26 lines
953 B
YAML
---
|
|
# Resolve platform-specific configuration for the target OS family.
|
|
# Sets _configuration_platform from configuration_platform_config[os_family].
|
|
- name: Resolve platform-specific configuration
|
|
ansible.builtin.assert:
|
|
that:
|
|
- os_family is defined
|
|
- os_family in configuration_platform_config
|
|
fail_msg: >-
|
|
Unsupported os_family '{{ os_family | default("undefined") }}'.
|
|
Extend configuration_platform_config in vars/main.yml.
|
|
quiet: true
|
|
|
|
- name: Set platform configuration
|
|
ansible.builtin.set_fact:
|
|
_configuration_platform: "{{ configuration_platform_config[os_family] }}"
|
|
|
|
- name: Override EFI loader to shim for Secure Boot
|
|
when:
|
|
- system_cfg.features.secure_boot.enabled | bool
|
|
- _configuration_platform.efi_loader != 'shimx64.efi'
|
|
- os != 'archlinux'
|
|
ansible.builtin.set_fact:
|
|
_configuration_platform: >-
|
|
{{ _configuration_platform | combine({'efi_loader': 'shimx64.efi'}) }}
|