refactor(partitioning): move btrfs home quota to configurable default
This commit is contained in:
@@ -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: >-
|
||||
{{
|
||||
(
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user