install generic linux headers (#1124)

pull/1126/head
Jack Ivanov 6 years ago committed by GitHub
parent 8f090a36f8
commit eb2224cde1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
---
install_headers: true

@ -108,7 +108,7 @@
- coreutils
- iptables-persistent
- cgroup-tools
- "openssl{% if install_headers|default(true)|bool %},linux-headers-{{ ansible_kernel }}{% endif %}"
- openssl
sysctl:
- item: net.ipv4.ip_forward
value: 1
@ -125,3 +125,12 @@
- "{{ tools|default([]) }}"
tags:
- always
- name: Install headers
apt:
name: "{{ item }}"
state: present
when: install_headers
with_items:
- linux-headers-generic
- "linux-headers-{{ ansible_kernel }}"

Loading…
Cancel
Save