feat: enable autoexpand on datapool in ZFS configuration

This commit is contained in:
Menno van Leeuwen 2025-03-12 13:11:07 +01:00
parent 5594afc4a6
commit 04050f3f03
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -30,6 +30,13 @@
become: true become: true
changed_when: false changed_when: false
- name: Enable autoexpand on datapool
ansible.builtin.command: zpool set autoexpand=on datapool
become: true
when: datapool_check.rc == 0
register: autoexpand_result
changed_when: autoexpand_result.rc == 0
- name: Ensure /mnt directory exists with proper permissions - name: Ensure /mnt directory exists with proper permissions
ansible.builtin.file: ansible.builtin.file:
path: /mnt path: /mnt