diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-12-09 01:53:23 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-12-09 01:53:23 +0100 |
commit | 755a54f2233e2aa9a27d3ab018879f7efbe8c501 (patch) | |
tree | 5d61aaafac00352b99a52dc20e13ba3fd7a35f34 /roles/vm/grub | |
parent | fixed acmetool self-signed cert handling (diff) | |
parent | vm installation works now again (diff) |
Merge branch 'new-repo-structure'
Diffstat (limited to 'roles/vm/grub')
-rw-r--r-- | roles/vm/grub/tasks/main.yml | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/roles/vm/grub/tasks/main.yml b/roles/vm/grub/tasks/main.yml index f751243a..eb868d38 100644 --- a/roles/vm/grub/tasks/main.yml +++ b/roles/vm/grub/tasks/main.yml @@ -1,16 +1,15 @@ --- - name: enable serial console in grub and for kernel - 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"' + with_dict: + GRUB_TIMEOUT: 2 + GRUB_CMDLINE_LINUX: '"console=ttyS0,115200n8"' + GRUB_TERMINAL: serial + GRUB_SERIAL_COMMAND: >- + "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" lineinfile: dest: /etc/default/grub - regexp: "{{ item.regexp }}" - line: "{{ item.line }}" + regexp: "^{{ item.key }}=" + line: "{{ item.key }}={{ item.value }}" notify: update grub + loop_control: + label: "{{ item.key }}" |