diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-05-24 23:40:30 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-05-24 23:40:30 +0200 |
commit | 79c40fec07d7ea906cf1375fa93a4b202766ba79 (patch) | |
tree | 11266d83065f2507da0d1f118a8d832be82a13c2 /roles/vm/grub/tasks | |
parent | some cleanups (diff) |
move vm roles to subdir
Diffstat (limited to 'roles/vm/grub/tasks')
-rw-r--r-- | roles/vm/grub/tasks/main.yml | 12 |
1 files changed, 12 insertions, 0 deletions
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 |