3 ms·
Can teleport run the same command on a group of servers, then collect the output and prefix it with the name of the server it came from? For example we could ru
by visarga 11y ago
Can teleport run the same command on a group of servers, then collect the output and prefix it with the name of the server it came from? For example we could run a "df" on a batch of servers and see if they have enough free space, all in one line.
- mikeokner 11y agoAnsible-shell can do that. (https://github.com/dominis/ansible-shell/blob/master/README.md https://github.com/dominis/ansible-shell/blob/master/README....)
- alexk 11y agosure, you can execute commands via SSH on multiple nodes using labels as a selector. > tsh --proxy=work ssh os=linux df also, as mikeokner noticed, if you already using ansible, ansible-shell should work out of the box as well.