diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-11-21 22:28:39 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-11-21 22:28:39 +0100 |
commit | 91cd5480b5a1ca1103d5e239af3d331477c41c2c (patch) | |
tree | b495bf31e2d5da50b045838a1e8d0455db09ee65 /roles/vm-grub/tasks |
initial commit as copy from helsinki ansible repo
Diffstat (limited to 'roles/vm-grub/tasks')
-rw-r--r-- | roles/vm-grub/tasks/main.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/vm-grub/tasks/main.yaml b/roles/vm-grub/tasks/main.yaml new file mode 100644 index 00000000..2bb09811 --- /dev/null +++ b/roles/vm-grub/tasks/main.yaml @@ -0,0 +1,10 @@ +--- +- name: disable recovery mode + 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 + |