It is free for a stay upto 30 days in Bali... Secondly, u do not require a Visa for Malaysia as you will be in transit and you will not be moving out of the Airport.
U dont need visa for Malaysia in this case unless u intent to go out and see Malaysia too.Since your flight layover is only for 2 hrs,you wont be able to do it.
As far as Bali is concerned it is free for Indians as u get Visa on Arrival.
I suppose you don’t require a visa for Bali And for Malaysia unless you visit it,you won’t need visa You don’t have much time so you don’t require visa at all
Visa Exemption for Indians coming to Bali, Indonesia If you stay less than 30 days then you do NOT NEED any Visa if you have an Indian passport. Also there would be no requirement for Visa in Maldives as you'll be in transit and it's just a layover.
No u will not need any visa for Malaysia..and in bali also u will get free visa stamp for 30days....for more detailed itinerary follow me and check my profile
Sachin Almal invited you to read their travel stories on Tripoto. 6 Nights Bali trip with Flights, luxurious private pool villa and car with chauffeur in Rs 32,000 https://tripoto.page.link/M3FC