refactor(partitioning): move btrfs home quota to configurable default

This commit is contained in:
2026-02-20 22:55:37 +01:00
parent 9d2f1cc5bd
commit a63ffbc731
2 changed files with 4 additions and 1 deletions

View File

@@ -24,6 +24,9 @@ partitioning_cis_reserved_gb: 7.5
partitioning_home_allocation_pct: 0.1
partitioning_home_min_gb: 2
partitioning_home_max_gb: 20
# Btrfs home quota (applied when CIS is enabled)
partitioning_btrfs_home_quota: 2G
partitioning_separate_boot: >-
{{
(

View File

@@ -60,7 +60,7 @@
when: system_cfg.features.cis.enabled
ansible.builtin.command: btrfs qgroup limit {{ item.quota }} /mnt/{{ '@' if item.subvol == 'root' else '@' + item.subvol }}
loop:
- { subvol: home, quota: 2G }
- { subvol: home, quota: "{{ partitioning_btrfs_home_quota }}" }
register: partitioning_btrfs_qgroup_result
changed_when: false