]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix: hydra: deploy: initial correction for multiple nodes provided to ansible
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 4 Jul 2024 04:31:09 +0000 (01:31 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 4 Jul 2024 04:31:09 +0000 (01:31 -0300)
docs/todo.md
share/hydra/deploy

index 782943d4221c38735c87f8f3f3969c86507a2227..8acf475f3f5084adfb82a0612007304382294337 100644 (file)
@@ -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
index b675577e0c2a5faf85fbd93b4f662d6dca332c6b..e440ae54164992ec496587a5540b6ed00ec77405 100755 (executable)
@@ -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