Is there any way to have Ansible run a build script locally on the control node, and then deploy the resulting artifact to various managed nodes?
Please let me know if there's something I've missed, but I looked at the docs for the shell
, command
and script
modules, and they each only seem to allow execution on the managed node. I'm really surprised I can't find a way to run a command on the control node.
Maybe this isn't in Ansible's wheelhouse?
Is the idea that you're supposed to use some other tool like Make
to do the build, and then Ansible only handles copying it to servers?