#7402 - Use template and not lineinline avoid inserting content multiple times
This commit is contained in:
parent
06abd3d226
commit
20ae871205
|
@ -10,22 +10,26 @@
|
|||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# 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'
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
- name: Execute the command update-grub in remote shell
|
||||
ansible.builtin.shell: update-grub
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
{{ line_hot_plug_grub }}
|
|
@ -0,0 +1 @@
|
|||
{{ line_hot_plug_udev }}
|
Loading…
Reference in New Issue