Skip to content

Commit 7f1415f

Browse files
authored
Merge pull request #114 from dev-sec/fix_111
install initramfs-tools
2 parents a909592 + 334e203 commit 7f1415f

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)