Improve handling of firmware

Add blacklisting of mei_me
This commit is contained in:
waal70
2025-09-02 16:16:59 +02:00
parent e3565e08f0
commit 201f5b1a98
2 changed files with 31 additions and 5 deletions

View File

@@ -25,3 +25,10 @@
environment:
DEBIAN_FRONTEND: noninteractive
changed_when: true
- name: Update initramfs
ansible.builtin.command:
cmd: "update-initramfs -u"
environment:
DEBIAN_FRONTEND: noninteractive
changed_when: true

View File

@@ -33,12 +33,31 @@
msg: "This is an Intel system, but it is a libreboot system. Removing intel-microcode package."
when: "'GenuineIntel' in ansible_facts['processor'] and 'installed' in ansible_local['cpu_info']['libreboot']"
- name: Remove intel-microcode on Intel libreboot systems
ansible.builtin.apt:
name: intel-microcode
state: absent
purge: true
- name: Block for actions that need to be done when libreboot present
when: "'GenuineIntel' in ansible_facts['processor'] and 'installed' in ansible_local['cpu_info']['libreboot']"
block:
- name: Remove intel-microcode on Intel libreboot systems
ansible.builtin.apt:
name: intel-microcode
state: absent
purge: true
- name: Blacklist mei_me module on libreboot systems
ansible.builtin.copy:
dest: /etc/modprobe.d/blacklist-mei.conf
content: |
# Disable Intel Management Engine Interface driver for libreboot systems
blacklist mei_me
owner: root
group: root
mode: '0644'
notify: Update initramfs
- name: Run depmod -ae as root
ansible.builtin.command: depmod -ae
become: true
changed_when: false
# end block
- name: Install intel-microcode on Intel non-libreboot systems
ansible.builtin.apt: