OK-5121 adding uninstall engine playbook#63
Merged
Conversation
relwell
reviewed
Jun 11, 2026
| @@ -0,0 +1,47 @@ | |||
| --- | |||
| - name: Unload Orka Engine LaunchDaemon | |||
Contributor
There was a problem hiding this comment.
This ansible lint warning is probably worth reviewing
|
Thanks Gerry! Good addition to have symmetry with Small note: the README calls it |
spikeburton
approved these changes
Jun 15, 2026
| --- | ||
| - name: Unload Orka Engine LaunchDaemon | ||
| become: true | ||
| ansible.builtin.command: "launchctl unload {{ uninstall_engine_service_path }}" |
Contributor
There was a problem hiding this comment.
Note - launchctl unload is deprecated (see man launchctl). We should opt for launchctl bootout - this is what we use in the monorepo and is the preferred modern way of unloading the service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
uninstall_engine.yml, a new playbook that reversesinstall_engine.yml. Useful for resetting hosts between test runs, manually decommissioning Orka Engine from a node, and as part of CI cleanup workflows that need to leave the lab in a known-clean state.Why
install_engine.ymllays down a non-trivial amount of state on the host (LaunchDaemon, app bundle, CLI helper,/opt/orkadata + state + logs). Until now there was no playbook-driven way to remove it from the orchestration repo. Operators have had to either:rm -rfthe relevant pathsorka-ansible'sremove-all.yml, which depends on a working K8s cluster and is overkill when the engine is the only thing installeduninstall_engine.ymlmakes the install/uninstall pair symmetric and removable on its own.What it removes
com.macstadium.orka-engine.server.managedLaunchDaemon/Library/LaunchDaemons/com.macstadium.orka-engine.server.managed.plistcom.macstadium.orka-engine.runvzprocesses/opt/orka(data, logs, VM state)/usr/local/libexec/orka-engine.apporka-engineCLI helper at/usr/local/bin/orka-enginePaths match
install_enginedefaults exactly so this is a true inverse of the installer.Optional variables
uninstall_engine_data(defaulttrue) — remove/opt/orka. Set tofalseto preserve VM state across reinstalls (useful for upgrades where you want to keep cached images and VM data).README updates included
install_engine.ymlplaybook.Test plan
install_engine.ymlon a clean host — confirm engine installs, LaunchDaemon loads,orka-engineCLI worksuninstall_engine.ymlon the same host — confirm:launchctl list | grep orka-enginereturns nothing)/Library/LaunchDaemons/com.macstadium.orka-engine.server.managed.plist)orka-engineprocesses running (pgrep orka-engine)/opt/orka,/usr/local/libexec/orka-engine.app,/usr/local/bin/orka-engineare goneinstall_engine.ymlagain on the now-cleaned host — confirm clean reinstall succeeds (idempotency check)uninstall_engine.yml -e "uninstall_engine_data=false"— confirm engine binaries are removed but/opt/orkaremains