#7402 - Use template and not lineinline avoid inserting content multiple times #8

Merged
rubenb merged 1 commits from 7402-Fix-lineinline-changes into main 2024-05-20 11:49:49 +00:00
3 changed files with 13 additions and 7 deletions

View File

@ -10,19 +10,23 @@
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# configure /usr/lib/udev/rules.d/80-hotplug-cpu-mem.rules
- name: configure /usr/lib/udev/rules.d/80-hotplug-cpu-mem.rules file
lineinfile:
template:
src: udev.j2
path: "{{ path_hot_plug_udev }}"
line: "{{ line_hot_plug_udev }}"
create: yes
owner: root
group: root
mode: '0644'
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# configure /etc/default/grub.d/hotplug.cfg
- name: configure /etc/default/grub.d/hotplug.cfg file
lineinfile:
template:
src: grub.j2
path: "{{ path_hot_plug_grub }}"
line: "{{ line_hot_plug_grub }}"
create: yes
owner: root
group: root
mode: '0644'
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

View File

@ -0,0 +1 @@
{{ line_hot_plug_grub }}

View File

@ -0,0 +1 @@
{{ line_hot_plug_udev }}