The government not only played a largely passive role, but they did not even assist where they could. Before the second wave, Serum Institute was appealing for financial help to boost production capacity. But the government completely neglected that, choosing to prop up covaxin, their homegrown vaccine instead.
Even as the government was petitioning WHO to open up vaccine IPs, they refused to open up the IP for their own covaxin to domestic manufacturers, instead ensuring exclusive access to a company that is very "close" to the party.
What saved India in the end was a strong pharma/health industry enabling local manufacturing and ready distribution network for the vaccine. Serum Institute was already the world's largest vaccine manufacturer and was in an amazing position to take up the Oxford vaccine. They jumped at it with all hands and today account for 90% of all doses administered. It's a shame that the rest of the industry doesn't have a bigger share, they certainly have the capability. India is like top 3 in the world in pharma manufacturing. Many companies were ready and willing to switch to vaccine manufacturing but were tied up in bureaucracy with no support from the government.
Political will was the need of the hour, the government had none and it certainly shows in the outcome. Bad leaders always seem to enjoy something of a stockholm syndrome where they are forgiven and admired for everything once the dust settles. People forget how bad the second wave was, and how bad the decisions of the government leading into it. If not for Serum Institute and the strength of the pharma industry, India would have easily gone down the path of Brazil for the kind of shithousery the government pulled.