refactor(partitioning): extract VG name to defaults variable

This commit is contained in:
2026-02-20 21:16:25 +01:00
parent c439e9741e
commit cd8e477534
4 changed files with 14 additions and 14 deletions

View File

@@ -2,7 +2,7 @@
- name: Create and format ext4 logical volumes
when: system_cfg.features.cis.enabled or item.lv not in ['home', 'var', 'var_log', 'var_log_audit']
community.general.filesystem:
dev: /dev/sys/{{ item.lv }}
dev: /dev/{{ partitioning_vg_name }}/{{ item.lv }}
fstype: ext4
force: true
loop:
@@ -16,7 +16,7 @@
when: >
(os in ['almalinux', 'rocky', 'rhel'] or (os == 'debian' and (os_version | string) == '11'))
and (system_cfg.features.cis.enabled or item.lv not in ['home', 'var', 'var_log', 'var_log_audit'])
ansible.builtin.command: tune2fs -O "^orphan_file,^metadata_csum_seed" "/dev/sys/{{ item.lv }}"
ansible.builtin.command: tune2fs -O "^orphan_file,^metadata_csum_seed" "/dev/{{ partitioning_vg_name }}/{{ item.lv }}"
loop:
- { lv: root }
- { lv: home }