Answer: If ants are living in the soil near the moss, they've probably found some shelter (perhaps under stepping stones?)and it will be hard to dissuade them from nesting there. It isn't likely that you'll be able to bait them with poison as would be the recommendation for sugar or grease ants. An alternative would be to flood the nesting area with water frequently enough to make the ants uncomfortable and want to move. Other garden insects shouldn't be completely eliminated - many are beneficial, preying on destructive pests, and many are pollinators, helping flowers set fruit and seed.
While it can sometimes be exasperating to have to put up with garden pests, they each have a job to do. If we understand their specific roles, maybe we can all become a little more tolerant of their presence.
Hope your ants run packing from their flood-prone home!
Q&A Library Searching Tips