Set screen resolution in FreeBSD on KVM
This commit is contained in:
parent
918c774b73
commit
ee8ef12881
2 changed files with 16 additions and 0 deletions
10
roles/freebsd/files/screen-qemu.conf
Normal file
10
roles/freebsd/files/screen-qemu.conf
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
Section "Screen"
|
||||||
|
Identifier "Screen0"
|
||||||
|
Device "Card0"
|
||||||
|
Monitor "Monitor0"
|
||||||
|
SubSection "Display"
|
||||||
|
Viewport 0 0
|
||||||
|
Depth 24
|
||||||
|
Modes "1024x768"
|
||||||
|
EndSubSection
|
||||||
|
EndSection
|
|
@ -16,3 +16,9 @@
|
||||||
copy:
|
copy:
|
||||||
src: keyboard-gb.conf
|
src: keyboard-gb.conf
|
||||||
dest: /usr/local/etc/X11/xorg.conf.d/keyboard-gb.conf
|
dest: /usr/local/etc/X11/xorg.conf.d/keyboard-gb.conf
|
||||||
|
- name: Set xorg screen size for kvm/qemu
|
||||||
|
become: true
|
||||||
|
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"
|
||||||
|
|
Loading…
Reference in a new issue