--- - hosts: '{{ ip_addr }}' become: yes become_method: sudo gather_facts: yes tasks: - name: "[CONFIG INSTALL PACKAGES] Comprobando si es necesario instalar paqueteria" debug: msg: "No es necesario instalar paqueteria en la máquina" when: packages_enabled is not defined or not packages_enabled - name: "[CONFIG INSTALL PACKAGES] Install packages" import_role: name: config-install-packages