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].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to