It isn't I am not seeing --limit working conjunction with --list-hosts 
2.0.beta as it did in 1.9.  I was search through here is to see if others 
were making the same observation.

E.g.: This provides all hosts in an inventory without the requested limit:

ansible -i inventory --limit [group|host] --list-hosts all

If limiting is of interest, --list-hosts had and continues to exhibit 
limiting behavior. Just now, it is the required way to limit.

ansible -i inventory --list-hosts [group|host]

This is a much more succinct, but may break existing expectations.

On Thursday, August 6, 2015 at 11:04:14 AM UTC-4, Greg DeKoenigsberg wrote:
>
> --list-hosts option is what you want.
> On Aug 6, 2015 8:34 AM, "Sergey Maslyakov" <[email protected] <javascript:>> 
> wrote:
>
>> Given an Ansible playbook, is there a simple way to list out all host 
>> groups that a given roles belongs to?
>>
>> My roles install applications using RPMs. If there is a fix in an 
>> application, I need to know what servers I should update.
>>
>>
>> Thank you,
>> /Sergey
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/adc6310c-5d3e-4bf9-9938-7ae50b04b75b%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/adc6310c-5d3e-4bf9-9938-7ae50b04b75b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/582859e1-60ea-4cdb-9c36-968bbfa573c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to