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

@@ -41,7 +41,7 @@
- name: Make root subvolumes
when:
- system_cfg.features.cis.enabled or item.subvol not in ['var_log_audit']
- system_cfg.features.cis.enabled | bool or item.subvol not in ['var_log_audit']
- system_cfg.features.swap.enabled | bool or item.subvol != 'swap'
ansible.builtin.command: btrfs su cr /mnt/{{ '@' if item.subvol == 'root' else '@' + item.subvol }}
args:
@@ -59,7 +59,7 @@
register: partitioning_btrfs_subvol_result
- name: Set quotas for subvolumes
when: system_cfg.features.cis.enabled
when: system_cfg.features.cis.enabled | bool
ansible.builtin.command: btrfs qgroup limit {{ item.quota }} /mnt/{{ '@' if item.subvol == 'root' else '@' + item.subvol }}
loop:
- { subvol: home, quota: "{{ partitioning_btrfs_home_quota }}" }