Using Bazel for Ansible roles, Molecules tests, etc

210 views
Skip to first unread message

CB

unread,
Mar 3, 2023, 7:07:10 PM3/3/23
to bazel-discuss
Hi,

Has anyone written Bazel definitions for Ansible roles, Molecule tests, and such?

I would like within our Bazel framework to be able to run a molecule test by doing something along the lines of this:

bazel test //ansible:tests

And have it perform the Molecule tests for the pieces of our Ansible infrastructure that have changed since the last run.

Similarly, we could run a playbook using something like this:

bazel run //ansible/role:blah

Is this possible?  Has anyone done this already?  Should I be asking somewhere else?

Thanks for your help!

Corey
Reply all
Reply to author
Forward
0 new messages