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 register: serial
check_mode: no check_mode: no
changed_when: '1 != 1' changed_when: '1 != 1'
failed_when: '1 != 1'
tags: tags:
- serial-console - serial-console
- name: set grub to use serial console - name: set grub to use serial console
command: /sbin/grubby --update-kernel=ALL --args="console=tty0 console=ttyS0,115200" 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 when: serial is defined and serial.stdout.find("console=tty0 console=ttyS0,115200") == -1
failed_when: '1 != 1'
tags: tags:
- serial-console - serial-console