--- - hosts: '{{ ip_addr }}' become: yes become_method: sudo gather_facts: no tasks: - name: "[CONFIG SERVER TYPE] Comprobando si es necesario instalar guest side" debug: msg: "No es necesario instalar guest side en la máquina" when: server-type_enabled is not defined or not server-type_enabled - name: "[CONFIG SERVER TYPE] Install guest side" import_role: name: config-server-type when: server-type_enabled is defined and server-type_enabled