Move Xorg config into qemu-guest.yml

This commit is contained in:
Anthony Rose 2022-09-23 10:49:22 +01:00
parent 24c099402a
commit e4b233515b
2 changed files with 5 additions and 12 deletions

View file

@ -19,6 +19,11 @@
# utouch-kmod and xf86-input-evdev are needed for mouse in QEMU/KVM. # utouch-kmod and xf86-input-evdev are needed for mouse in QEMU/KVM.
name: utouch-kmod,xf86-input-evdev name: utouch-kmod,xf86-input-evdev
state: present state: present
- name: Set xorg screen
become: true
ansible.builtin.copy:
src: screen-qemu.conf
dest: /usr/local/etc/X11/xorg.conf.d/screen-qemu.conf
- name: Enable utouch module - name: Enable utouch module
become: true become: true
ansible.builtin.lineinfile: ansible.builtin.lineinfile:

View file

@ -19,15 +19,3 @@
name: dbus name: dbus
state: started state: started
enabled: yes enabled: yes
- name: Set xorg screen size for kvm/qemu
become: true
ansible.builtin.copy:
src: screen-qemu.conf
dest: /usr/local/etc/X11/xorg.conf.d/screen-qemu.conf
when: ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm"
- name: Enable SDDM
become: true
ansible.builtin.lineinfile:
path: /etc/rc.conf.d/ansible-workstation
regexp: '^sddm_enable=.*'
line: 'sddm_enable="YES"'