Re: [ansible-project] Overriding value of 'hosts' playbook variable

2014-05-12 Thread Michael DeHaan
I'm confused by this as well. When you say you are not using an inventory file, do you mean you are using the dynamic inventory plugin? If you want a group that contains just the new hosts you have brought online, or want to add new hosts (in memory) to an existing host name, look at how the "add

Re: [ansible-project] Overriding value of 'hosts' playbook variable

2014-05-12 Thread Paul Durivage
I don't think what you want to do is override a value at runtime, but rather *create* a new group dynamically at runtime. Make a new group for hosts that meet some arbitrary criteria. See the group_bymodule -- I think you'll find what you're looking f

[ansible-project] Overriding value of 'hosts' playbook variable

2014-05-12 Thread JC
Hi guys, Anyone know if you can completely override the hosts: value in a playbook? I don't use inventory files so I always just have this set to 'all'. But when I call a playbook from another playbook like this, for example: # Playbook1 - name: Format EBS volumes hosts: ec2_group # coming f