From 4bce4e54c4e97d0fa4128dee67f57ba33ef6a2b0 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 7 Dec 2017 17:59:15 +0100 Subject: harmonized yaml syntax --- roles/vm-grub/tasks/main.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'roles/vm-grub/tasks/main.yaml') diff --git a/roles/vm-grub/tasks/main.yaml b/roles/vm-grub/tasks/main.yaml index 970cd9b4..bd48a470 100644 --- a/roles/vm-grub/tasks/main.yaml +++ b/roles/vm-grub/tasks/main.yaml @@ -1,10 +1,12 @@ --- - name: enable serial console in grub and for kernel - lineinfile: dest=/etc/default/grub regexp={{ item.regexp }} line={{ item.line }} + 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"' } + - { 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 - -- cgit v1.2.3