A professor I know is becoming head of department, do I send congratulations or condolences?
That would depend on how well I knew the person. If they were a very close friend of long standing, I'd probably offer condolences, just as a joke. But that would take a special relationship.
In the general case, only congratulations are in order.