mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-22 00:57:08 +02:00
install generic linux headers (#1124)
This commit is contained in:
parent
8f090a36f8
commit
eb2224cde1
2 changed files with 12 additions and 1 deletions
2
roles/common/defaults/main.yml
Normal file
2
roles/common/defaults/main.yml
Normal file
|
@ -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…
Add table
Reference in a new issue