On Tue, Sep 30, 2014 at 3:14 PM, Michael DeHaan <[email protected]> wrote:
> A nice way to express the above might be to use group ranges:
>
> - hosts: specific_group[0:5]

Nice, I wasn't aware of this syntax. I've used the longer form when
doing something like setting up an elasticsearch cluster where the
first 3 nodes were set as master, non-data nodes. This is definitely
cleaner and easier to extend if I need to add more master nodes.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJQqANdHLr5oS2n6SYhTjTQgBsvYzTVm2cS59cbCgOpabv34hw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to