Less initramfs modules
This commit is contained in:
parent
4d8a959323
commit
583f5fee4f
4
roles/packages/handlers/main.yml
Normal file
4
roles/packages/handlers/main.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
- name: Make initramfs
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: update-initramfs -u
|
||||||
|
become: yes
|
@ -12,6 +12,14 @@
|
|||||||
state: absent
|
state: absent
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
|
|
||||||
|
- name: Less modules in initramfs
|
||||||
|
ansible.builtin.replace:
|
||||||
|
path: /etc/initramfs-tools/initramfs.conf
|
||||||
|
regexp: '^MODULES=most$'
|
||||||
|
replace: 'MODULES=dep'
|
||||||
|
notify:
|
||||||
|
- Make initramfs
|
||||||
|
|
||||||
- name: Install CentOS epel
|
- name: Install CentOS epel
|
||||||
yum:
|
yum:
|
||||||
name: 'epel-release'
|
name: 'epel-release'
|
||||||
|
Loading…
Reference in New Issue
Block a user