There are some chemical treatments that will kill it off but it may come back and need additional treatments in the future. The other solution is to add some copper flashing near the ridge line of the roof. Rain water reacts with the flashing and the runoff will keep the moss away.
MarkV