ployground / ploy_ansible

Plugin to integrate Ansible with ploy.
5 stars 4 forks source link

allow to configure groups #16

Open tomster opened 9 years ago

tomster commented 9 years ago

currently, if i define group memebership in ploy.conf (groups = foo) i can use that group to define group specific variables in group_vars/foo.yml and it works as expected.

what i would also expect, though, is that i can run configure against this group.

i.e. given the this ploy.conf snippet:

[ez-instance:foo]
master = staging production
groups = foo

[ez-instance:bar]
master = staging production
groups = foo

running ploy configure foo I get ploy configure: error: argument instance: invalid choice: 'foo'.

as an added bonus it would be really convenient to be able to target a group specifically to a host, i.e. i would like to be able to configure foo and bar on staging by issuing ploy configure staging-foo.

what needs to be done to achieve this?