There's this execnet thing:
https://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?
@wolf480pl That sounds like a primitive version of ansible IMO.
CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.
@swiley AFAIK ansible can't chain connections (except for ssh's built-in ProxyJump/ProxyCommand maybe...)