aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-28 14:50:40 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-28 14:50:40 -0300
commite4498e5d6ce79262c50fa35943c9b4cfd1323a71 (patch)
treee0b2a227557ba0087ff5f2c1241c6177dba801f3
parentdde08fea041728a17a090d9a884d446bc0891cd6 (diff)
downloadhydra-e4498e5d6ce79262c50fa35943c9b4cfd1323a71.tar.gz
hydra-e4498e5d6ce79262c50fa35943c9b4cfd1323a71.tar.bz2
Deploy: fix ansible-playbook invocation
-rwxr-xr-xshare/hydra/deploy10
1 files changed, 9 insertions, 1 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy
index ce8b148..070f8cd 100755
--- a/share/hydra/deploy
+++ b/share/hydra/deploy
@@ -262,6 +262,14 @@ if [ ! -z "$NODES" ]; then
NODES="$*"
fi
fi
+else
+ NODES="all"
fi
-hydra $HYDRA ansible-playbook site.yml --limit $NODES
+if [ ! -z "$NODES" ]; then
+ if [ "$NODES" == "all" ]; then
+ hydra $HYDRA ansible-playbook site.yml
+ else
+ hydra $HYDRA ansible-playbook site.yml --limit $NODES
+ fi
+fi