diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-05-28 14:50:40 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-05-28 14:50:40 -0300 |
commit | e4498e5d6ce79262c50fa35943c9b4cfd1323a71 (patch) | |
tree | e0b2a227557ba0087ff5f2c1241c6177dba801f3 | |
parent | dde08fea041728a17a090d9a884d446bc0891cd6 (diff) | |
download | hydra-e4498e5d6ce79262c50fa35943c9b4cfd1323a71.tar.gz hydra-e4498e5d6ce79262c50fa35943c9b4cfd1323a71.tar.bz2 |
Deploy: fix ansible-playbook invocation
-rwxr-xr-x | share/hydra/deploy | 10 |
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 |