fix(partitioning): add | bool to all system_cfg.features.cis.enabled checks

This commit is contained in:
2026-02-22 03:06:13 +01:00
parent b72816e985
commit 2f3fce42b5
6 changed files with 19 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
---
- name: Create and format XFS logical volumes
when: system_cfg.features.cis.enabled or item.lv not in ['home', 'var', 'var_log', 'var_log_audit']
when: system_cfg.features.cis.enabled | bool or item.lv not in ['home', 'var', 'var_log', 'var_log_audit']
community.general.filesystem:
dev: /dev/{{ partitioning_vg_name }}/{{ item.lv }}
fstype: xfs