Ali Hassan Khalil will retain the post of finance minister in the new Lebanese government, a senior official said.