Skip to content

Commit 334e203

Browse files
author
Sebastian Gumprich
committed
install initramfs-tools
These are not installed by default on debian 8 but needed for module generation. see: #111
1 parent a909592 commit 334e203

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tasks/sysctl.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
template: src='rhel_sysconfig_init.j2' dest='/etc/sysconfig/init' owner=root group=root mode=0544
77
when: ansible_distribution == 'RedHat' or ansible_distribution == 'Fedora' or ansible_distribution == 'CentOS'
88

9+
- name: install initramfs-tools
10+
apt: name='initramfs-tools' state=installed update_cache=true
11+
when: ansible_os_family == 'Debian' and os_security_kernel_enable_module_loading
12+
913
- name: rebuild initramfs with starting pack of modules, if module loading at runtime is disabled
1014
template: src='modules.j2' dest='/etc/initramfs-tools/modules' owner=root group=root mode=0440
1115
when: ansible_os_family == 'Debian' and os_security_kernel_enable_module_loading

0 commit comments

Comments
 (0)