Yeah, that could work but you need all current owners to agree, possibly change the factoring arrangement etc etc. And this is assuming the solar would be permitted - it isn't always.
Oh, and don't forget that work might be require to reinforce the roof to take the weight.