I know it's possible to run a playbook against the first half of group1, but is it possible to create child groups like that in the inventory already? This is an example:
[group1]
srv1
srv2
srv3
srv4
[halfgroup1:child]
group1[0:2] #<-- This should contain srv1 and srv2
I can run the playbook against group1[0:2], or against srv1,srv2. But is it possible to do these in the inventory already, so i can run the playbook against halfgroup1?
With the example above, Ansible is unable to parse the inventory. So I guess it's just not possible, but if anybody has an idea, feel free to share it with me.