]> gitweb.fluxo.info Git - hydra.git/commitdiff
Mass: back to pssh as its currently more reliable
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 31 May 2018 13:19:18 +0000 (10:19 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 31 May 2018 13:19:18 +0000 (10:19 -0300)
share/hydra/mass

index b66956b4746d6c74a6f7d80bf1d5ea2f6b979f54..f477bee8e753ea70b1bea5a32b58e69edead876a 100755 (executable)
@@ -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