19 lines
685 B
YAML
19 lines
685 B
YAML
- name: grub_cmdline_parameters | Manage additional grub command line options
|
|
tags:
|
|
- grub
|
|
- kernel
|
|
block:
|
|
- name: grub_cmdline_parameters | Install the grub command line configuration
|
|
ansible.builtin.template:
|
|
src: grub_cmdline.cfg.j2
|
|
dest: /etc/default/grub.d/99-grub-ansible-cmdline.cfg
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
when: configure_grub_cmdline_parameters
|
|
- name: grub_cmdline_parameters | Remove the custom grub command line configuration
|
|
ansible.builtin.file:
|
|
dest: /etc/default/grub.d/99-grub-ansible-cmdline.cfg
|
|
state: absent
|
|
when: not configure_grub_cmdline_parameters
|