Better way to handle the serial console
This commit is contained in:
7
roles/grub/tasks/Debian.yaml
Normal file
7
roles/grub/tasks/Debian.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: enable serial console
|
||||
lineinfile:
|
||||
path: "{{ grub_defaults_path }}"
|
||||
regexp: '^GRUB_CMDLINE_LINUX='
|
||||
line: GRUB_CMDLINE_LINUX="{{ grub_cmdline_linux }}"
|
||||
notify: grub-mkconfig
|
12
roles/grub/tasks/main.yaml
Normal file
12
roles/grub/tasks/main.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: gather OS specific variables
|
||||
include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
|
||||
- "{{ ansible_distribution }}.yaml"
|
||||
- "{{ ansible_os_family }}.yaml"
|
||||
|
||||
- name: run os specific tasks
|
||||
include: "{{ item }}"
|
||||
with_first_found:
|
||||
- "{{ ansible_os_family }}.yaml"
|
Reference in New Issue
Block a user