d5a9ba5a84
This is to avoid updating to a version that is not yet supported by ZFS, causing the DKMS build to fail.
41 lines
753 B
YAML
41 lines
753 B
YAML
- name: Install packages
|
|
package:
|
|
name:
|
|
- linux-lts-headers
|
|
state: present
|
|
|
|
- name: Build aur packages
|
|
register: buildaur
|
|
become_user: "{{ build_user.name }}"
|
|
command: "aurutils-sync --no-view {{ item }}"
|
|
args:
|
|
creates: "/var/cache/pacman/custom/{{ item }}-*.pkg.tar.*"
|
|
loop:
|
|
- zfs-dkms
|
|
- zfs-utils
|
|
|
|
- name: Update cache
|
|
when: buildaur.changed
|
|
pacman:
|
|
name: []
|
|
state: present
|
|
update_cache: true
|
|
|
|
- name: Install packages
|
|
package:
|
|
name:
|
|
- zfs-dkms
|
|
- zfs-utils
|
|
state: present
|
|
|
|
- name: Enable services
|
|
systemd:
|
|
enabled: yes
|
|
name: "{{ item }}"
|
|
daemon_reload: yes
|
|
loop:
|
|
- zfs-import-cache.service
|
|
- zfs-mount.service
|
|
- zfs.target
|
|
- zfs-import.target
|