Files
ansible_role_package/tasks/pkgs/zfs.yml
Matthew Stobbs 9dc78f3b89 add new packages
- cockpit
- firewalld
- nfs client and server
- restic
- samba client and server
- targetcli
2025-03-26 21:31:13 -06:00

31 lines
775 B
YAML

# vim: set filetype=yaml.ansible :
---
- name: Add zfs
when:
- zfs_configured is undefined
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