Answer
No, Ansari never held a position in the central government. He served as the Vice President of India from 2007 to 2012 and was the Governor of Kerala from 1999 to 2004, both of which are positions within the state government. Ansari's political career was primarily focused on state-level politics and he did not hold any significant positions at the central government level.