Is it possible to ask fabric to perform actions conditionally? This should be fairly trivial, because it’s “just Python”, but I’m not 100% sure how to run commands and capture their return code or output.
As an example, how would I have behaviour that is conditional on the value of an environment variable in the host?
It’s pretty straightforward: