Subject to the provisions of §§ 10-7-10 to 10-7-230 the public officers having by law the care and custody of town, village, city or county buildings may insure the same at the expense and for the benefit of the town, village, city or county owning the same.