feat(configuration): auto-bind PCR 7 when Secure Boot and FDE are both enabled
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
block:
|
block:
|
||||||
- name: Set LUKS configuration facts
|
- name: Set LUKS configuration facts
|
||||||
vars:
|
vars:
|
||||||
luks_tpm2_pcrs: >-
|
_raw_pcrs: >-
|
||||||
{{
|
{{
|
||||||
(
|
(
|
||||||
system_cfg.luks.tpm2.pcrs
|
system_cfg.luks.tpm2.pcrs
|
||||||
@@ -20,6 +20,12 @@
|
|||||||
| regex_replace('\\s+', '')
|
| regex_replace('\\s+', '')
|
||||||
| regex_replace('^\\+|\\+$', '')
|
| regex_replace('^\\+|\\+$', '')
|
||||||
}}
|
}}
|
||||||
|
luks_tpm2_pcrs: >-
|
||||||
|
{{
|
||||||
|
_raw_pcrs
|
||||||
|
if _raw_pcrs | length > 0
|
||||||
|
else ('7' if (system_cfg.features.secure_boot.enabled | bool) else '')
|
||||||
|
}}
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
configuration_luks_mapper_name: "{{ system_cfg.luks.mapper }}"
|
configuration_luks_mapper_name: "{{ system_cfg.luks.mapper }}"
|
||||||
configuration_luks_uuid: "{{ partitioning_luks_uuid | default('') }}"
|
configuration_luks_uuid: "{{ partitioning_luks_uuid | default('') }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user