mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 17:24:12 +00:00
install initramfs-tools
These are not installed by default on debian 8 but needed for module generation. see: https://github.com/dev-sec/ansible-os-hardening/issues/111
This commit is contained in:
parent
a9095928ac
commit
334e203f8b
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,10 @@
|
|||
template: src='rhel_sysconfig_init.j2' dest='/etc/sysconfig/init' owner=root group=root mode=0544
|
||||
when: ansible_distribution == 'RedHat' or ansible_distribution == 'Fedora' or ansible_distribution == 'CentOS'
|
||||
|
||||
- name: install initramfs-tools
|
||||
apt: name='initramfs-tools' state=installed update_cache=true
|
||||
when: ansible_os_family == 'Debian' and os_security_kernel_enable_module_loading
|
||||
|
||||
- name: rebuild initramfs with starting pack of modules, if module loading at runtime is disabled
|
||||
template: src='modules.j2' dest='/etc/initramfs-tools/modules' owner=root group=root mode=0440
|
||||
when: ansible_os_family == 'Debian' and os_security_kernel_enable_module_loading
|
||||
|
|
Loading…
Reference in a new issue