After you clean the tank and lines, yes, you have to run the bleach throughout the system, put a good under the sink water filter in the feed line to the ice maker.
Don't forget to purge the system by dumping three or four buckets of ice over the side.