Fix external graphics card.

This commit is contained in:
Andreas B. Mundt 2023-02-07 08:14:11 +01:00
parent 0c9711a1da
commit 89ddaa0138
2 changed files with 19 additions and 1 deletions

View file

@ -42,3 +42,21 @@
shell: /bin/bash shell: /bin/bash
groups: libvirt groups: libvirt
append: yes append: yes
- name: Fix 8086:4909 external graphics card
replace:
dest: "/etc/default/grub"
regexp: 'GRUB_CMDLINE_LINUX=""$'
replace: 'GRUB_CMDLINE_LINUX="i915.force_probe=4909"'
notify: update grub
when: ansible_board_vendor == "LENOVO" and ansible_board_name == "32CB"
- name: add bookworm
apt_repository:
repo: deb http://deb.debian.org/debian/ bookworm non-free-firmware
state: present
update_cache: true
when: ansible_board_vendor == "LENOVO" and ansible_board_name == "32CB"
- name: upgrade non-free-firmware packages
apt:
upgrade: true
autoremove: true
autoclean: true

View file

@ -24,7 +24,7 @@
- name: add {{ ansible_distribution_release }}-backports - name: add {{ ansible_distribution_release }}-backports
apt_repository: apt_repository:
repo: deb http://deb.debian.org/debian/ {{ ansible_distribution_release }}-backports main repo: deb http://deb.debian.org/debian/ {{ ansible_distribution_release }}-backports main contrib non-free
state: present state: present
update_cache: true update_cache: true
when: extra_pkgs_bpo|length when: extra_pkgs_bpo|length