2024-02-15 14:39:41 +00:00
|
|
|
|
|
|
|
- name: "[CONFIG HOT PLUG] Comprobando si es necesario configurar hot plug"
|
|
|
|
meta: end_host
|
|
|
|
when: hot-plug_enabled is not defined or not hot-plug_enabled
|
|
|
|
|
2024-01-09 17:58:56 +00:00
|
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
# Install and configure HOT-PLUG
|
|
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
# 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:
|
|
|
|
path: "{{ path_hot_plug_udev }}"
|
|
|
|
line: "{{ line_hot_plug_udev }}"
|
2024-01-09 18:16:39 +00:00
|
|
|
create: yes
|
2024-01-09 17:58:56 +00:00
|
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
# configure /etc/default/grub.d/hotplug.cfg
|
|
|
|
- name: configure /etc/default/grub.d/hotplug.cfg file
|
|
|
|
lineinfile:
|
|
|
|
path: "{{ path_hot_plug_grub }}"
|
|
|
|
line: "{{ line_hot_plug_grub }}"
|
2024-01-09 18:16:39 +00:00
|
|
|
create: yes
|
2024-01-09 18:27:48 +00:00
|
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
- name: Execute the command update-grub in remote shell
|
|
|
|
ansible.builtin.shell: update-grub
|
2024-01-09 17:58:56 +00:00
|
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|