install generic linux headers (#1124)

This commit is contained in:
Jack Ivanov 2018-09-21 20:05:11 +03:00 committed by GitHub
parent 8f090a36f8
commit eb2224cde1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

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

View File

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