The mayor and council shall appoint a city manager, who shall be the administrative head of the city government and shall be responsible for the administration of all departments. The city manager shall be appointed with regard to merit only and need not be a resident of the city when appointed. The city manager shall hold office at the pleasure of the mayor and council and shall receive such compensation as the mayor and council shall fix by ordinance.