2018-08-12 22:21:45 +02:00
|
|
|
---
|
2020-05-04 23:27:56 +02:00
|
|
|
- name: (Archlinux) Install wireguard-lts package
|
2018-08-12 22:21:45 +02:00
|
|
|
pacman:
|
2020-05-02 21:12:34 +02:00
|
|
|
name: "{{ item.name }}"
|
|
|
|
state: "{{ item.state }}"
|
|
|
|
with_items:
|
|
|
|
- { name: wireguard-dkms, state: absent }
|
|
|
|
- { name: wireguard-lts, state: present }
|
2018-08-12 22:21:45 +02:00
|
|
|
become: yes
|
|
|
|
tags:
|
|
|
|
- wg-install
|
2020-05-02 21:12:34 +02:00
|
|
|
when:
|
|
|
|
- ansible_kernel is match(".*-lts$")
|
|
|
|
- ansible_kernel is version('5.6', '<')
|
2020-05-02 21:32:09 +02:00
|
|
|
|
2020-05-04 23:27:56 +02:00
|
|
|
- name: (Archlinux) Install wireguard-dkms package
|
2020-05-02 21:12:34 +02:00
|
|
|
pacman:
|
|
|
|
name: wireguard-dkms
|
2020-05-04 23:27:56 +02:00
|
|
|
state: present
|
2020-05-02 21:12:34 +02:00
|
|
|
become: yes
|
|
|
|
tags:
|
|
|
|
- wg-install
|
|
|
|
when:
|
|
|
|
- not ansible_kernel is match(".*-lts$")
|
|
|
|
- ansible_kernel is version('5.6', '<')
|
2020-05-04 23:27:56 +02:00
|
|
|
|
|
|
|
- name: (Archlinux) Install wireguard-tools package
|
|
|
|
pacman:
|
|
|
|
name: wireguard-tools
|
|
|
|
state: present
|
|
|
|
tags:
|
|
|
|
- wg-install
|