From 2e5b51cc24b6f6c91e7f969fe14e3adc2d4e80f2 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 21 Apr 2018 23:28:35 +0200 Subject: rename all .yaml to .yml --- roles/vm-grub/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 roles/vm-grub/tasks/main.yml (limited to 'roles/vm-grub/tasks/main.yml') diff --git a/roles/vm-grub/tasks/main.yml b/roles/vm-grub/tasks/main.yml new file mode 100644 index 00000000..bd48a470 --- /dev/null +++ b/roles/vm-grub/tasks/main.yml @@ -0,0 +1,12 @@ +--- +- name: enable serial console in grub and for kernel + lineinfile: + dest: /etc/default/grub + regexp: "{{ item.regexp }}" + line: "{{ item.line }}" + with_items: + - { regexp: '^GRUB_TIMEOUT=', line: 'GRUB_TIMEOUT=2' } + - { regexp: '^GRUB_CMDLINE_LINUX=', line: 'GRUB_CMDLINE_LINUX="console=ttyS0,115200n8"' } + - { regexp: '^GRUB_TERMINAL=', line: 'GRUB_TERMINAL=serial' } + - { regexp: '^GRUB_SERIAL_COMMAND=', line: 'GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"' } + notify: update grub -- cgit v1.2.3