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>
unmanaged-hosts
pallinger 5 years ago committed by GitHub
parent 359d601008
commit 1997b9d710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save