Hi Marco, On Thu, Dec 30, 2021 at 05:49:38PM +0100, Marco Möller wrote: > As my aim is to interactively run the same commands on several machines, in > order to observe if they everywhere behave the same or what different > results they would produce, does each SSH session report back to Ansible the > console output of the command, or allow interactivity with the session like > answering questions at the console if the command would produce a question, > as tmux allows such interactivity? Or is Ansible thought to send > non-interactive commands which are supposed to not write output back to a > visible console?
While dsh or Ansible ad-hoc commands would report back the output, Ansible won't work for / isn't designed for interactive use and it would be quite awkward in dsh too. Wouldn't work for full terminal applications and the like. So config management, ssh multilaunchers and shell loops aren't the right topol for this. If all you want to do is launch the same command everywhere, it's pretty simple in tmux. Get all your logins in different panels and then synchronize them so the same command is launched in all. Then unsync to go through and interact individually again. https://stackoverflow.com/questions/16325449/how-to-send-a-command-to-all-panes-in-tmux Basically you are wanting a scriptable full terminal, so tmux fits the bill I think. You can remote control it from outside in many ways to get it to do what you want. Cheers, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting