Use Arch Linux specific package list (#48)
Arch Linux ships a Linux kernel > 5.6 and doesn't require DKMS. Move the package list variable to (distribution-specific) var files. For the Arch Linux LTS kernel (5.4) a binary wireguard-lts package is provided in [core].unmanaged-hosts
parent
13621d4d68
commit
04843b5394
@ -1,11 +1,23 @@
|
|||||||
---
|
---
|
||||||
- name: Install required packages
|
- name: Install wireguard-lts package
|
||||||
pacman:
|
pacman:
|
||||||
name: "{{ packages }}"
|
name: "{{ item.name }}"
|
||||||
state: present
|
state: "{{ item.state }}"
|
||||||
|
with_items:
|
||||||
|
- { name: wireguard-dkms, state: absent }
|
||||||
|
- { name: wireguard-lts, state: present }
|
||||||
become: yes
|
become: yes
|
||||||
vars:
|
|
||||||
packages:
|
|
||||||
- linux-headers
|
|
||||||
tags:
|
tags:
|
||||||
- wg-install
|
- wg-install
|
||||||
|
when:
|
||||||
|
- ansible_kernel is match(".*-lts$")
|
||||||
|
- ansible_kernel is version('5.6', '<')
|
||||||
|
- name: Install wireguard-dksm package
|
||||||
|
pacman:
|
||||||
|
name: wireguard-dkms
|
||||||
|
become: yes
|
||||||
|
tags:
|
||||||
|
- wg-install
|
||||||
|
when:
|
||||||
|
- not ansible_kernel is match(".*-lts$")
|
||||||
|
- ansible_kernel is version('5.6', '<')
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
packages:
|
||||||
|
- wireguard-tools
|
@ -0,0 +1,3 @@
|
|||||||
|
packages:
|
||||||
|
- wireguard-dkms
|
||||||
|
- wireguard-tools
|
Loading…
Reference in New Issue