[lnst] TaskAPI: improved access to hosts and interfaces