The 48-year-old Mr. Ansip was the minister of economics and communications minister in the previous government .