mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-06 15:13:56 +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
|
- coreutils
|
||||||
- iptables-persistent
|
- iptables-persistent
|
||||||
- cgroup-tools
|
- cgroup-tools
|
||||||
- "openssl{% if install_headers|default(true)|bool %},linux-headers-{{ ansible_kernel }}{% endif %}"
|
- openssl
|
||||||
sysctl:
|
sysctl:
|
||||||
- item: net.ipv4.ip_forward
|
- item: net.ipv4.ip_forward
|
||||||
value: 1
|
value: 1
|
||||||
|
@ -125,3 +125,12 @@
|
||||||
- "{{ tools|default([]) }}"
|
- "{{ tools|default([]) }}"
|
||||||
tags:
|
tags:
|
||||||
- always
|
- 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