A few bay leaves scattered loose on cupboard shelves will repel inspects of many kinds, including ants.
not really because the taste and flavor will not be ok
Take a cheese grinder and cinnamon sticks, and just rub the cinnamin sticks against the cheese grinder.......