Ah, apologies. Will move discussion over. On Friday, December 27, 2013 9:42:05 AM UTC-5, Michael DeHaan wrote: > > I was suggesting this be posed on ansible-devel list btw, will let you > post there and we can discuss. > > -- Michael > > On Dec 27, 2013, at 7:15 AM, "[email protected] <javascript:>" < > [email protected] <javascript:>> wrote: > > RE: https://github.com/ansible/ansible/pull/5430 > > The intent here was to make it possible for users of the ec2 inventory > module to be able to directly address hosts using groups in the format of > '<tag>=<value>' > > The patch does not change existing behavior, and keeps the legacy format > of host groups for tags to look like 'tag_<tag>_<value>' by default. > > Say I have a tag named 'role' across some subset of instances, and the > value of this tag can be set to things like 'builder', 'packer' or > 'shipper'. > > Using the ec2 inventory plugin as is, to run a playbook across all host > instances whose 'role' tag is set to 'builder', one would need to: > > ansible-playbook -i ./inventory ./playbooks/builders.yml -l > tag_role_builder > > It would be nice to simply be able to do: > > ansible-playbook -i ./inventory ./playbooks/builders.yml -l role=builder > > And now you can also define your playbooks to have: > ---- > hosts: role=builder > .... > > That's all this pull request does, with no impact on backwards > compatibility. > > -- > 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:> > . > For more options, visit https://groups.google.com/groups/opt_out. > >
-- 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]. For more options, visit https://groups.google.com/groups/opt_out.
