I even tried the following:

[matcher:children]
am[201:205]
am[301:305]

[memcached:children]
am[201:205]
am[301:305]

I called the playbook with "--limit matcher".

Stuff for "- hosts: matcher_memcached" still executed.

No need to respond if this is expected. I will look into tags or splitting.

Thanks for the response, especially so quickly on the weekend.

Mike

On Saturday, March 22, 2014 2:58:11 PM UTC-4, Michael DeHaan wrote:
>
> Groups select hosts not tasks, I see the group "hosts" in both groups so 
> this is correct.  
>
> Consider tagging or splitting your playbooks.
>
> -- Michael
>
> On Mar 22, 2014, at 2:31 PM, Mike Cavedon <[email protected] <javascript:>> 
> wrote:
>
> Hi,
>
> I have the following set-up:
>
> [hosts]
> am[201:205]
> am[301:305]
>
> [matcher:children]
> hosts
>
> [memcached:children]
> hosts
>
> I'm expecting to be able to use "--limit matcher" and have only the tasks 
> associated with "matcher" executed on the hosts but the tasks associated 
> with "memcached" are also being executed. If I'm not doing something 
> incorrectly how do I get only the tasks associated with "matcher" to 
> execute on the hosts associated with both "matcher" and "memcached"?
>
> Thanks.
>
> -- 
> 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/2e979fc2-389d-428d-b9e9-32a244739f91%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/2e979fc2-389d-428d-b9e9-32a244739f91%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/452d7ee1-381c-448e-99e0-583eb6130c39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to