3
0
Fork 0

Fix on debian openstack images (#55)

* on openstack Debian images, the kernel is different, so we need to install different kernel headers, too

* fix syntax error in conditional fact

* remove debug message

Co-authored-by: Peter Pallinger <pallinger@sztaki.hu>
This commit is contained in:
pallinger 2020-06-14 17:52:17 +02:00 committed by GitHub
parent 359d601008
commit 1997b9d710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -18,10 +18,13 @@
register: dpkg_arch
changed_when: False
- set_fact:
kernel_header_version: "{{ ('-cloud-' in ansible_kernel) | ternary(ansible_kernel,dpkg_arch.stdout) }}"
- name: (Debian) Install kernel headers to compile Wireguard with DKMS
apt:
name:
- "linux-headers-{{ dpkg_arch.stdout }}"
- "linux-headers-{{ kernel_header_version }}"
state: present
- name: (Debian) Install wireguard packages