Files
ansible_role_package/tasks/pkgs/zfs.yml
Matthew Stobbs ceabce67e4 removed bool check
Signed-off-by: Matthew Stobbs <matthew.stobbs@ucalgary.ca>
2025-05-12 14:24:27 -06:00

29 lines
733 B
YAML

# vim: set filetype=yaml.ansible :
---
- name: Add zfs
block:
- name: Load zfs config
ansible.builtin.include_tasks:
file: config/zfs.yml
- name: Linux based installation
when:
- ansible_system == 'Linux'
block:
- name: Append zfs to pkg_sys
notify:
- Depend zfs repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + zfs.deps + zfs.pkgs }}"
- name: Append openzfs to pkg_cask
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['openzfs'] }}"
- name: Set zfs_configured
ansible.builtin.set_fact:
zfs_configured: true