From 5b96f65edfc8ed1d37884fb3ee5f21edab443888 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 4 Jul 2024 01:31:09 -0300 Subject: Fix: hydra: deploy: initial correction for multiple nodes provided to ansible --- docs/todo.md | 1 + share/hydra/deploy | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3