ansible-role-basic-system-s.../tasks/grub_cmdline_parameters.yml

19 lines
685 B
YAML
Raw Normal View History

2024-07-12 17:19:54 +02:00
- 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
2024-07-12 17:19:54 +02:00
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:
2024-07-12 17:27:29 +02:00
dest: /etc/default/grub.d/99-grub-ansible-cmdline.cfg
2024-07-12 17:19:54 +02:00
state: absent
when: not configure_grub_cmdline_parameters