It is not an essential oil but is still effective against ants. Vinegar is one of the most versatile household cleaning products, and can be used as an insecticide.
Pouring it into the floor detergent will not only keep the ants away, but will increase the degreasing and cleaning power of the detergent.