vn-ansible/linux-config-hot-plug.yaml

19 lines
498 B
YAML

---
- hosts: '{{ ip_addr }}'
become: yes
become_method: sudo
gather_facts: yes
tasks:
- name: "[CONFIG HOT PLUG] Comprobando si es necesario configurar hot plug"
debug:
msg: "No es necesario configurar hot plug en la máquina"
when: hot-plug_enabled is not defined or not hot-plug_enabled
- name: "[CONFIG HOT PLUG] Install and configure hot plug"
import_role:
name: config-hot-plug
when: hot-plug_enabled is defined and hot-plug_enabled