Make sure serial-console doesn't fail on non-efi boxes

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2019-07-03 10:48:21 +00:00
parent c1aeb1c753
commit 873dda5608

View file

@ -6,12 +6,14 @@
register: serial
check_mode: no
changed_when: '1 != 1'
failed_when: '1 != 1'
tags:
- serial-console
- name: set grub to use serial console
command: /sbin/grubby --update-kernel=ALL --args="console=tty0 console=ttyS0,115200"
when: serial is defined and serial.stdout.find("console=tty0 console=ttyS0,115200") == -1
failed_when: '1 != 1'
tags:
- serial-console