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

36 lines
1.4 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
template:
src: udev.j2
dest: "{{ path_hot_plug_udev }}"
owner: root
group: root
mode: '0644'
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# configure /etc/default/grub.d/hotplug.cfg
- name: configure /etc/default/grub.d/hotplug.cfg file
template:
src: grub.j2
dest: "{{ path_hot_plug_grub }}"
owner: root
group: root
mode: '0644'
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- name: Execute the command update-grub in remote shell
ansible.builtin.shell: update-grub
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++