1
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

View file

@ -18,10 +18,13 @@
register: dpkg_arch register: dpkg_arch
changed_when: False 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 - name: (Debian) Install kernel headers to compile Wireguard with DKMS
apt: apt:
name: name:
- "linux-headers-{{ dpkg_arch.stdout }}" - "linux-headers-{{ kernel_header_version }}"
state: present state: present
- name: (Debian) Install wireguard packages - name: (Debian) Install wireguard packages