common: Add vm tweaks
This commit is contained in:
parent
fc5913d56b
commit
e3b3ee0eec
5 changed files with 24 additions and 0 deletions
15
roles/common/tasks/vm.yaml
Normal file
15
roles/common/tasks/vm.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
- name: Install guest agent
|
||||
apt:
|
||||
name: qemu-guest-agent
|
||||
|
||||
- name: Serial Console
|
||||
lineinfile:
|
||||
path: /etc/default/grub
|
||||
regexp: ^GRUB_CMDLINE_LINUX_DEFAULT
|
||||
line: 'GRUB_CMDLINE_LINUX_DEFAULT="quiet console=ttyS0,115200n1 console=tty0"'
|
||||
notify:
|
||||
- update grub
|
||||
- reboot
|
||||
|
||||
- meta: flush_handlers
|
Loading…
Add table
Add a link
Reference in a new issue