M. vaccae is an fascinating example of beneficial bacteria found in soil! I think you can simply breathe it in from being around soil, but don't quote me on that
https://en.m.wikipedia.org/wiki/Mycobacterium_vaccae
https://www.google.com/search?q=m+vaccae