Fix building ZFS on linux.

This commit is contained in:
Tom Alexander
2023-10-26 20:40:12 -04:00
parent 7f47b1ca1b
commit ec72d20455
2 changed files with 17 additions and 0 deletions

View File

@@ -4,6 +4,20 @@
- linux-lts-headers
state: present
- name: Check trusted gpg keys
become_user: "{{ build_user.name }}"
command: gpg --list-public-keys --keyid-format LONG
register: gpgkeys
changed_when: false
check_mode: no
- name: Trust ZFS key
when: "item not in gpgkeys.stdout"
become_user: "{{ build_user.name }}"
command: "gpg --recv-key '{{ item }}'"
loop:
- "0AB9E991C6AF658B"
- name: Build aur packages
register: buildaur
become_user: "{{ build_user.name }}"