--- - 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