[cap_recipe] Copy over implementation from devops-tools