--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
There's presently no mechanism to do this.Is there anything wrong with always picking the first one, perhaps?
--On Fri, May 17, 2013 at 9:05 PM, Curtis <server...@gmail.com> wrote:--Hi All,What I need to do is pick one of the ansible_hosts group members randomly to run some cluster bootstrap code on it. I don't care which one, but it can be only one. Any suggestions as to how to do that?Thanks,Curtis.--
Twitter: @serverascode
Blog: serverascode.com
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Group names in host groups can take offsets, like so:
hosts: groupname[0]
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
"Downside of this method, however, is that it forces you to repeat that for every group of clusternodes."Depends on what you are doing.
If you have a 50 node Riak cluster or a 100 node Hadoop or something, and you want to run something on only one node, that's nothing to repeat.
Not sure if I understand what the group by pool does.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I think you are conflating the problem.He requested how to address one node out of a group, not how to manage lots of first nodes in lost of groups.