To keep ants out of the house, find where the ants are entering the house and sprinkle a "barrier" of cinnamon or any type of ground pepper to block their way. The spices are too hot for the ants to cross. Cucumber peels have the same effect.