A Fife Council notice said the road closure was necessary to allow Scottish Gas works to be carried out in safety.