refactor(standardize): fix sudoers lecture syntax, extract ssh config, remove redundant os filters
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
{{
|
||||
(
|
||||
partitioning_main_uuid.stdout
|
||||
if (system_cfg.filesystem | lower) == 'btrfs'
|
||||
if system_cfg.filesystem == 'btrfs'
|
||||
else (partitioning_uuid_root | default([]) | first | default(''))
|
||||
)
|
||||
| default('')
|
||||
@@ -36,11 +36,11 @@
|
||||
else []
|
||||
)
|
||||
)
|
||||
if (system_cfg.filesystem | lower) != 'btrfs'
|
||||
if system_cfg.filesystem != 'btrfs'
|
||||
else []
|
||||
}}
|
||||
grub_root_flags: >-
|
||||
{{ ['rootflags=subvol=@'] if (system_cfg.filesystem | lower) == 'btrfs' else [] }}
|
||||
{{ ['rootflags=subvol=@'] if system_cfg.filesystem == 'btrfs' else [] }}
|
||||
grub_cmdline_linux_base: >-
|
||||
{{
|
||||
(['crashkernel=auto'] + grub_lvm_args)
|
||||
|
||||
Reference in New Issue
Block a user