Is it allowed to embed Ansible into commercial products?

Would it be against spirit or letter of Ansible's license, if I embed it in commercial application? The application consists of multiple services that need to be deployed and that's for what Ansible supposed to be used.

IANAL, so I strongly suggest asking one to be sure, but Ansible is GPL3+ licensed, so embedding it in other commercial products would require some due diligence on your part. If your product is simply using Ansible to do something under the hood, mainly your obligation would be to provide the source code, along with any modifications you made. However, as the integration points for module code are BSD-licensed, you would not have to share the source code for private modules you may write.

If you have any further questions, I’d suggest researching the GPL and how projects like Linux are used in other commercial products. And of course, talk to an actual lawyer.

Hope that helps!