There's this execnet thing:
github.com/pytest-dev/execnet

it's a python library which allows you to spawn a remotely-controlled python on a remote host (through ssh or otherwise) and execute arbitrary python functions in it.

it can also use that remote interpreter as a jump host to spread onto more remote hosts.

Unfortunately, it's deprecated, and it looks like it will only be maintained to the extent it's used in pytest-xdist.

Do you know of any similar but more maintained projects?

Follow

@wolf480pl That sounds like a primitive version of ansible IMO.

@swiley AFAIK ansible can't chain connections (except for ssh's built-in ProxyJump/ProxyCommand maybe...)

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.