Less initramfs modules

This commit is contained in:
lulzette 2022-10-19 16:20:46 +00:00
parent 4d8a959323
commit 583f5fee4f
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,4 @@
- name: Make initramfs
ansible.builtin.command:
cmd: update-initramfs -u
become: yes

View File

@ -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'