The fire marshal shall be appointed by the mayor, upon the advice of the fire chief. The fire marshal shall be responsible for conducting all fire inspections within the city, including those associated with building permits, and for such other duties as may be assigned to him from time to time by the mayor, the fire chief, or the city council.