"Having there one play with "- hosts: service1" and another with "- hosts: service2", one might expect that
"ansible-playbook -i hosts_devel -l "service1:&vagrant" site.yml" would run only play with "- hosts: service1". However, both are run:" Nope, both plays are run, however the hosts are limited down to things in the service1 and vagrant groups. Your localhost box is selected in the service2 play because devel has vagrant has localhost. Working as designed. On Thu, Nov 28, 2013 at 3:06 PM, Paul Sokolovsky <[email protected]> wrote: > > > On Thursday, November 28, 2013 7:04:08 AM UTC+2, Peter Gehres wrote: >> >> And then I reread and, right after I sent, realize that they have >> similarities, but are totally different. >> > > Yes, it also deals with issue of host selection, but doesn't touch > "ambiguity" of how groups are defined. Thanks for the pointer anyway. > > > -- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Michael DeHaan <[email protected]> CTO, AnsibleWorks, Inc. http://www.ansibleworks.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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
