refactor(configuration): split encryption.yml into crypttab, dracut, grub, and initramfs subtasks

This commit is contained in:
2026-03-12 09:18:17 +01:00
parent 1f778a7aaa
commit 5b3076d9e1
5 changed files with 213 additions and 208 deletions

View File

@@ -0,0 +1,10 @@
---
- name: Write crypttab entry
ansible.builtin.lineinfile:
path: /mnt/etc/crypttab
regexp: "^{{ configuration_luks_mapper_name }}\\s"
line: >-
{{ configuration_luks_mapper_name }} UUID={{ configuration_luks_uuid }}
{{ configuration_luks_crypttab_keyfile }} {{ configuration_luks_crypttab_options }}
create: true
mode: "0600"