From 14fc9ea54b4f39d3b7245ae8bd7a77901c4487f8 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 3 Sep 2021 09:20:30 +0300 Subject: [PATCH] all-host alias. For running the same command on all hosts. Could probably have used Ansible, but this is shorter and more portable. --- .bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bashrc b/.bashrc index 64d65c9..8436a4e 100644 --- a/.bashrc +++ b/.bashrc @@ -61,6 +61,7 @@ export VAGRANT_DEFAULT_PROVIDER="virtualbox" [ ! -f "$HOME/.bashrc.private" ] || . "$HOME/.bashrc.private" alias 0-day-cleanup='ssh kodi.shore.co.il "sudo -u debian-transmission find /srv/library/Comics -name *.part -path *0-Day\ Week\ of* -delete"' +alias all-hosts='echo -n ea6350 ns1 ns4 host01 kodi | xargs -d " " -I HOST ssh HOST.shore.co.il' alias ansible-local-playbook='ansible-playbook -i localhost, -c local -e "ansible_python_interpreter=$(which python3)"' alias ansible-local='ansible localhost -c local -i localhost, -e "ansible_python_interpreter=$(which python3)"' alias aptitude='aptitude --display-format %p --quiet' -- GitLab