diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-04 01:31:09 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-04 01:31:09 -0300 |
commit | 5b96f65edfc8ed1d37884fb3ee5f21edab443888 (patch) | |
tree | a48dd8f5a0c9776e88657e67824f5c4df0f1874c | |
parent | d0d0062f7f5c9e97ab4ec4227afaf06846924942 (diff) | |
download | hydra-5b96f65edfc8ed1d37884fb3ee5f21edab443888.tar.gz hydra-5b96f65edfc8ed1d37884fb3ee5f21edab443888.tar.bz2 |
Fix: hydra: deploy: initial correction for multiple nodes provided to ansible
-rw-r--r-- | docs/todo.md | 1 | ||||
-rwxr-xr-x | share/hydra/deploy | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/todo.md b/docs/todo.md index 782943d..8acf475 100644 --- a/docs/todo.md +++ b/docs/todo.md @@ -3,6 +3,7 @@ ## hydra * [ ] Deploy: + * [ ] Command line is broken for ansible when multiple nodes are provided. * [ ] Use console-based GnuPG agent when calling `keyringer`. * [ ] Automatically fix permission of (or delete) puppet's `devices` folder: https://github.com/puppetlabs/puppet-specifications/blob/master/file_paths.md diff --git a/share/hydra/deploy b/share/hydra/deploy index b675577..e440ae5 100755 --- a/share/hydra/deploy +++ b/share/hydra/deploy @@ -300,7 +300,8 @@ if [ -e "$HYDRA_FOLDER/ansible/ansible.cfg" ]; then if [ "$NODES" == "all" ]; then hydra $HYDRA ansible-playbook site.yml $ANSIBLE_ARGS else - hydra $HYDRA ansible-playbook site.yml $ANSIBLE_ARGS --limit $NODES + NODES="`echo $NODES | tr ' ' ','`" + hydra $HYDRA ansible-playbook site.yml $ANSIBLE_ARGS --limit "$NODES" fi fi fi |