Skip to content

Commit

Permalink
install initramfs-tools
Browse files Browse the repository at this point in the history
These are not installed by default on debian 8 but needed for module generation.

see: #111
  • Loading branch information
Sebastian Gumprich committed Jan 23, 2017
1 parent 0779022 commit 438dafc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/sysctl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 438dafc

Please sign in to comment.