fix remaining packages to new format
- still needs testing
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
---
|
||||
- name: Linux based installation
|
||||
when:
|
||||
- ansible_os_family != 'Darwin'
|
||||
- ansible_system == 'Linux'
|
||||
block:
|
||||
- name: RedHat based configuration
|
||||
when:
|
||||
@@ -22,7 +22,8 @@
|
||||
state: present
|
||||
|
||||
- name: Debian configuration
|
||||
when: ansible_os_family == 'Debian'
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
block:
|
||||
- name: Enable openzfs repository
|
||||
become: "{{ sys_pkg_become }}"
|
||||
@@ -37,19 +38,20 @@
|
||||
- name: Pin zfs package to backports
|
||||
become: "{{ sys_pkg_become }}"
|
||||
ansible.builtin.file:
|
||||
dest: /etc/apt/preferences.d/90_zfs
|
||||
state: file
|
||||
mode: '0644'
|
||||
content: |
|
||||
Package: src:zfs-linux
|
||||
Pin: release n={{ zfs.release }}-backports
|
||||
Pin-Priority: 990
|
||||
dest: /etc/apt/preferences.d/90_zfs
|
||||
state: present
|
||||
mode: '0644'
|
||||
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + zfs.deps + zfs.pkgs }}"
|
||||
|
||||
- name: Append to caskpkgs
|
||||
when: ansible_os_family == 'Darwin'
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['openzfs'] }}"
|
||||
|
||||
Reference in New Issue
Block a user