vn-ansible/roles/config-hot-plug/tasks/main.yaml

36 lines
1.4 KiB
YAML
Raw Normal View History

2024-02-15 14:39:41 +00:00
- name: "[CONFIG HOT PLUG] Comprobando si es necesario configurar hot plug"
meta: end_host
2024-02-15 17:50:53 +00:00
when: hot_plug_enabled is not defined or not hot_plug_enabled
2024-02-15 14:39:41 +00:00
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
template:
src: udev.j2
2024-01-09 17:58:56 +00:00
path: "{{ path_hot_plug_udev }}"
owner: root
group: root
mode: '0644'
2024-01-09 17:58:56 +00:00
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# configure /etc/default/grub.d/hotplug.cfg
- name: configure /etc/default/grub.d/hotplug.cfg file
template:
src: grub.j2
2024-01-09 17:58:56 +00:00
path: "{{ path_hot_plug_grub }}"
owner: root
group: root
mode: '0644'
2024-01-09 18:27:48 +00:00
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- name: Execute the command update-grub in remote shell
ansible.builtin.shell: update-grub
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++