31 lines
1.3 KiB
YAML
31 lines
1.3 KiB
YAML
|
|
- 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
|
|
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
# 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 }}"
|
|
create: yes
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
# 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 }}"
|
|
create: yes
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
- name: Execute the command update-grub in remote shell
|
|
ansible.builtin.shell: update-grub
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |