Execute local commands on the MAAS host when deploying machine

I feel like I’m maybe being a bit dumb here, but I’ve yet to figure this out.

Say I’d for example, like to run the command:

/bin/echo “{{node.hostname}} finished deploying!” > /tmp/maas

on the MAAS host (not the newly deployed machine) - what would be the best way of going about this? I’ve read up on preseeding with curtin, but so far I’ve only gotten that to run the commands on the deployed machine. Not locally on the MAAS host.

I’m not sure you can. That would be nice. I set up a mini web server on my MAAS server and I post to it in my curtin script.