We’ve got an external ansible system that queries some external sources for expired systems that need to be rebuilt. I’d like to have it call to the foreman infrastructure to do builds/jobs and reset them.
I think this should put the host in build mode, but you’d still need to reboot it and make sure it boots from Foreman (and not from local disk) to actually re-provision it.
the reboot would most likely be a second step in the playbook to reboot via power job template… (I hope!)
My work has some “research” servers that researchers do a bunch of tests on… I’d need to do a workflow to pull relevant data from server, apply a rebuild, reboot, and apply some custom “researchy” configs to them.