disable_wayland_gdm3.yaml
---
- name: Disable Wayland in GDM3
hosts: all
become: true
tasks:
- name: Ensure WaylandEnable=false in GDM3 config
lineinfile:
path: /etc/gdm3/custom.conf
regexp: '^#?WaylandEnable='
line: 'WaylandEnable=false'
backup: yes
notify: restart gdm3
handlers:
- name: restart gdm3
service:
name: gdm3
state: restarted如果这篇文章对您有帮助,请考虑请我喝杯咖啡或通过 PayPal 捐款,以支持 TechOverflow 上新文章的研究与发布