Grits. Sprinkle on their trail.
I don't though mess around with ants (except inside) or much anything else insect wise unless they are quite problematical.
I don't cut that much slack though with aphids, spider mites, scale, slugs. I find no redeeming value in any of those.
Ants do have an affinity for certain plants. If you grow Luffa sponge plant for example, you will have ants.