From: Silvio Rhatto Date: Thu, 31 May 2018 13:19:18 +0000 (-0300) Subject: Mass: back to pssh as its currently more reliable X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=5cf9293635e1217c3a9e1e534eb20cd97dd54c53;p=hydra.git Mass: back to pssh as its currently more reliable --- diff --git a/share/hydra/mass b/share/hydra/mass index b66956b..f477bee 100755 --- a/share/hydra/mass +++ b/share/hydra/mass @@ -45,7 +45,7 @@ function mass_mussh { # Issue commands with ansible function mass_ansible { hydra_install_package ansible - ansible -i $TMPWORK all -f 1 --sudo -a "$COMMAND" + ansible -i $TMPWORK all -f 1 --become -a "$COMMAND" } # Set nodes @@ -97,5 +97,5 @@ fi # Execute commands in hosts echo "Issuing $COMMAND on multiple nodes..." mass_exec_localhost -mass_ansible +mass_pssh hydra_unset_tmpfile $TMPWORK