2 - name: enable serial console in grub and for kernel
4 - regexp: '^GRUB_TIMEOUT='
6 - regexp: '^GRUB_CMDLINE_LINUX='
7 line: 'GRUB_CMDLINE_LINUX="console=ttyS0,115200n8"'
8 - regexp: '^GRUB_TERMINAL='
9 line: 'GRUB_TERMINAL=serial'
10 - regexp: '^GRUB_SERIAL_COMMAND='
11 line: 'GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"'
13 dest: /etc/default/grub
14 regexp: "{{ item.regexp }}"
15 line: "{{ item.line }}"